SYS_vsprintf
2-464
C Interface
Syntax
SYS_vsprintf(buffer, format, vargs);
Parameters
String
buffer;
/* output buffer */
String
format;
/* format specification string */
va_list
vargs;
/* variable argument list reference */
Return Value
Void
Description
SYS_vsprintf provides a subset of the capabilities found in the standard
C library function printf.
Note:
SYS_vsprintf and the related functions are code-intensive. If possible,
applications should use LOG Module functions to reduce code size and
execution time.
Conversion specifications begin with a % and end with a conversion
character. The conversion characters recognized by SYS_vsprintf are
limited to the characters in Table 2-10.
Table 2-10.
Conversion Characters Recognized by SYS_vsprintf
Note that the %f conversion character is supported only on devices that
have a native floating point type (for example, the ’C67x).
SYS_vsprintf
Output formatted data
Character
Corresponding Output Format
d
signed decimal integer
u
unsigned decimal integer
o
octal integer
x
hexadecimal integer
c
single character
s
NULL-terminated string
p
data pointer