CLI
2.9
|
Useful routines. More...
Go to the source code of this file.
Functions | |
void | CheckSnprintfResult (char *const STR_Buffer, const size_t UI_BufferLength, const int I_SnprintfResult) |
Control snprintf result. More... | |
Useful routines.
Definition in file utils.h.
void CheckSnprintfResult | ( | char *const | STR_Buffer, |
const size_t | UI_BufferLength, | ||
const int | I_SnprintfResult | ||
) |
Control snprintf result.
Check whether all characters have been correctly written in the buffer. When an error has occurred, ensures the reset of the buffer. If all characters could not be written, ensures the buffer is terminated by the "...\0" pattern.
STR_Buffer | Buffer where snprintf was asked to print characters. |
UI_BufferLength | Size of the buffer. |
I_SnprintfResult | Sprintf result. |