1 /* sprintf( char *, const char *, ... )
3 This file is part of the Public Domain C Library (PDCLib).
4 Permission is granted to use, modify, and / or redistribute at will.
13 int sprintf( char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, ...)
17 va_start( ap, format );
18 rc = vsnprintf( s, SIZE_MAX, format, ap ); /* TODO: replace with non-checking call */
26 #define _PDCLIB_FILEID "stdio/sprintf.c"
27 #define _PDCLIB_STRINGIO
29 #include "_PDCLIB_test.h"
31 #define testprintf( s, format, ... ) sprintf( s, format, __VA_ARGS__ )
36 #include "printf_testcases.h"