sprintf

sprintf

Function

sprintf

Writes data to a formatted character string

Syntax

#include <ultra64.h>        /* os.h */
int sprintf(char *buffer, const char *format, .../* args */);

Arguments

buffer
Buffer address
format
Address of the character string that specifies format
args
Arguments specified in format arg

Return Value

Number of characters stored in the buffer.
* Terminating NULL is not included.

Description

Formats a string of characters and numbers and stores them in a buffer. When the option arguments are specified, the data is converted and stored according to the corresponding format specifications inside the format-specified character string.

Revision History

02/01/99 Entirely revised