sprintf2

Writes formatted output to a character string (supports float and double type)

long sprintf2 (
        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” can be used.
sprintf2() requires more stack space than sprintf().

See Also

printf2()