AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Header:     stdio.h

Syntax:     
extern int snprintf
(
char       *s,
size_t      n,
const char *format,
...
);


Purpose:     This function is equivalent to fprintf except that the argument s specifies an array into which the generated output is to be written, rather than to a stream.  The argument n conveys the size of the buffer pointed to by s to avoid the possibility of overflow.  The stream is null terminated at n-1 and remaining characters that don't fit are discarded.  Returns the number of characters that would have been output (excluding the null terminator) had n been sufficiently large.

[sh-index] Back to list of manuals