SPRINTF(3) Library Functions Manual SPRINTF(3)

sprintf snprintfprint 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(3) .

Derived from Issue 1 of the SVID.

February 1997 posix.fail