snprintf Function (tigcc.a)

stdio.h

short snprintf (char *buffer, unsigned long maxlen, const char *format, ...);

Sends formatted output, up to a given length, to a string.

snprintf sends formatted output to a string. In fact, it does the following:

snprintf applies the first format specifier to the first argument, the second to the second, and so on. The format string, controls how snprintf will convert and format its arguments. See printf for more info about format specifiers.

snprintf returns the number of bytes output, not including the terminating null byte in the count.


Uses: vsnprintf


See also: sprintf, vsnprintf