sprintf, snprintf - print formatted output
#include <stdio.h> int snprintf(char *s, size_t n, const char *format, /* args */ ...); int sprintf(char *s, const char *format, ...);
Refer to fprintf().
Derived from Issue 1 of the SVID.