443
edits
-
Changes
Created page with "<strong>SPRINTF</strong> ==SYNOPSIS== #include <stdio.h> int sprintf(char * buf, char * fmt, ...); int vsprintf(char * buf, char * fmt, va_list ap); ==DESCRIPTION== <..."
<strong>SPRINTF</strong>
==SYNOPSIS==
#include <stdio.h>
int sprintf(char * buf, char * fmt, ...);
int vsprintf(char * buf, char * fmt, va_list ap);
==DESCRIPTION==
<strong>Sprintf</strong>() operates in a similar fashion to <strong>printf</strong>(),
except that instead of placing the converted output on
the stdout stream, the characters are placed in the
buffer at buf. The resultant string will be null-terminated, and the number of characters in the buffer
will be returned. <strong>Vsprintf</strong> takes an argument pointer
rather than a list of arguments.
==SEE ALSO==
printf, fprintf, sscanf
==SYNOPSIS==
#include <stdio.h>
int sprintf(char * buf, char * fmt, ...);
int vsprintf(char * buf, char * fmt, va_list ap);
==DESCRIPTION==
<strong>Sprintf</strong>() operates in a similar fashion to <strong>printf</strong>(),
except that instead of placing the converted output on
the stdout stream, the characters are placed in the
buffer at buf. The resultant string will be null-terminated, and the number of characters in the buffer
will be returned. <strong>Vsprintf</strong> takes an argument pointer
rather than a list of arguments.
==SEE ALSO==
printf, fprintf, sscanf