|
|
coherent
sprintf() STDIO sprintf() Format output #include <stdio.h> iinntt sspprriinnttff(_s_t_r_i_n_g, _f_o_r_m_a_t [ , _a_r_g ] ...) cchhaarr *_s_t_r_i_n_g, *_f_o_r_m_a_t; sprintf formats and prints a string. It resembles the function printf, except that it writes its output into the memory location pointed to by string, instead of to the standard output. sprintf reads the string pointed to by format to specify an out- put format for each arg; it then writes every arg into string, which it ends with a null character. For a detailed discussion of sprintf's formatting codes, see printf. ***** Example ***** For an example of this function, see the entry for ssssccaannff. ***** See Also ***** printf(), fprintf(), STDIO ***** Notes ***** The output string passed to sprintf must be large enough to hold all output characters. Because C does not perform type checking, it is essential that each argument match its format specification. At present, sspprriinnttff does not return a meaningful value. COHERENT Lexicon Page 1
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.