◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back► ─────Run-Time Library─────────────────────────────────────────────────────── The sprintf function formats and stores a series of characters and values in <buffer>. Each <argument> (if any) is converted and output according to the corresponding format specification in the <format> argument. The format consists of ordinary characters and has the same form and function as the <format> argument for the printf function. A null character is appended to the end of the characters written, but is not counted in the return value. See: ◄Format Specifiers► ◄Escape Sequences► The _snprintf function differs from sprintf in that it stores no more than <count> characters to <buffer>. Return Value Both the sprintf and _snprintf functions return the number of characters stored in <buffer>, not counting the terminating null character. For _snprintf, if the number of bytes required to store the data exceeds <count>, then <count> bytes of data are stored in <buffer> and -1 is returned. -♦-