rcutils  master
C API providing common utilities and data structures.
Macros
snprintf.h File Reference
#include <stdio.h>
Include dependency graph for snprintf.h:

Go to the source code of this file.

Macros

#define rcutils_snprintf   snprintf
 Format a string. More...
 
#define rcutils_vsnprintf   vsnprintf
 Format a string with va_list for arguments, see rcutils_snprintf(). More...
 

Macro Definition Documentation

#define rcutils_snprintf   snprintf

Format a string.

This function just wraps snprintf() as defined in C11 in a portable way.

On Windows this defaults to the _TRUNCATE behavior of _snprintf_s().

See also
snprintf()
#define rcutils_vsnprintf   vsnprintf

Format a string with va_list for arguments, see rcutils_snprintf().