Print formatted output to a string, up to a given maximum number of characters
#include <qdb/qdb.h>
char * qdb_snprintf( int n,
char *buf,
const char *format, ...);
qdb
This function is a variant of the snprintf() from the standard C library. However, it is different from snprintf() in these ways:
For more information about additional formatting options, see qdb_mprintf().
![]() |
You shouldn't use the return value of this function. In future versions, it may be changed to return the number of characters written rather than a pointer to the buffer. |
QNX Neutrino
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
qdb_mprintf(), printf() in the Neutrino Library Reference