]> pd.if.org Git - pdclib/blob - functions/stdio/vsprintf.c
Porting current working set from CVS.
[pdclib] / functions / stdio / vsprintf.c
1 /* $Id$ */
2
3 /* Release $Name$ */
4
5 /* vsprintf( char *, const char *, va_list ap )
6
7    This file is part of the Public Domain C Library (PDCLib).
8    Permission is granted to use, modify, and / or redistribute at will.
9 */
10
11 #include <stdio.h>
12 #include <stdint.h>
13 #include <stdarg.h>
14
15 #ifndef REGTEST
16
17 int vsprintf( char * str, const char * format, _PDCLIB_va_list arg )
18 {
19     return vsnprintf( str, SIZE_MAX, format, arg );
20 }
21
22 #endif
23
24 #ifdef TEST
25 #include <_PDCLIB_test.h>
26
27 int main( void )
28 {
29     TESTCASE( NO_TESTDRIVER );
30     return TEST_RESULTS;
31 }
32
33 #endif