#include <stdio.h>int snprintf(char * restrict buf, size_t num,             const char * restrict format, ...)

The snprintf( ) function was added by C99.

The snprintf( ) function is identical to sprintf( ) except that a maximum of num–1 characters will be stored into the array pointed to by buf. On completion, this array is null-terminated. Thus, snprintf( ) allows you to prevent buf from being overrun.

Related functions are printf( ), sprintf( ), and fsprintf( ).

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net