MIP_SDK  v3.0.0-502-gc890c1c
MicroStrain Communications Library for embedded systems
Modules
MicroStrain Strings

High-level functions for manipulating C strings. More...

Modules

 MicroStrain Strings [C]
 String manipulation in C.
 
 MicroStrain Strings [CPP]
 String manipulation in C++.
 

Detailed Description

High-level functions for manipulating C strings.

These functions wrap the standard str(n)cat and snprintf(_v) functions to provide a more uniform and robust interface.

All of these functions work on a character buffer using an index value. The index value is used to track the current position in the buffer. The boolean return value allows easy error checking. These features make it easy to chain multiple format calls in series without having to check for various error conditions between steps.

Because sprintf and related functions can cause bloat in some embedded environments, functions which call snprintf are disabled unless logging is turned on via MICROSTRAIN_ENABLE_LOGGING.