#include <stdio.h>
long sprintf (
char *s,
const char *fmt[,argument...]
)
|
Arguments
s |
Pointer to storage area holding converted character string |
fmt |
Input format conversion string |
Return Value
The length of the output character string is returned. NULL is returned
if an error occurred.
Explanation
Writes formatted output to a character string and places the result in
the storage area pointed to by s. Please refer to the C language
reference for a detailed explanation of the input format conversion string.
The format specifiers “f”, “e”, “E”, “g” and “G” cannot be used. sprintf2()
of the mathematical function service is used to display floating-point
numbers.
See Also
printf(), sprintf2()
|