]> pd.if.org Git - pdclib/blob - functions/stdio/snprintf.c
Removed the $Name$ tags (not supported by SVN). Added $Id$ to Makefile / text files.
[pdclib] / functions / stdio / snprintf.c
1 /* $Id$ */
2
3 /* snprintf( char *, size_t, const char *, ... )
4
5    This file is part of the Public Domain C Library (PDCLib).
6    Permission is granted to use, modify, and / or redistribute at will.
7 */
8
9 #include <stdio.h>
10 #include <stdarg.h>
11
12 #ifndef REGTEST
13
14 int snprintf( char * _PDCLIB_restrict s, size_t n, const char * _PDCLIB_restrict format, ...)
15 {
16     va_list ap;
17     va_start( ap, format );
18     return vsnprintf( s, n, format, ap );
19 }
20
21 #endif
22
23 #ifdef TEST
24 #include <_PDCLIB_test.h>
25
26 int main( void )
27 {
28     TESTCASE( NO_TESTDRIVER );
29     return TEST_RESULTS;
30 }
31
32 #endif