1 /* Copyright (C) 2004       Manuel Novoa III    <mjn3@codepoet.org>
2  *
3  * GNU Library General Public License (LGPL) version 2 or later.
4  *
5  * Dedicated to Toni.  See uClibc/DEDICATION.mjn3 for details.
6  */
7 
8 #include "_stdio.h"
9 #include <stdarg.h>
10 
11 #ifndef __STDIO_HAS_VSNPRINTF
12 #warning Skipping snprintf since no vsnprintf!
13 #else
14 
15 
snprintf(char * __restrict buf,size_t size,const char * __restrict format,...)16 int snprintf(char *__restrict buf, size_t size,
17 			 const char * __restrict format, ...)
18 {
19 	va_list arg;
20 	int rv;
21 
22 	va_start(arg, format);
23 	rv = vsnprintf(buf, size, format, arg);
24 	va_end(arg);
25 	return rv;
26 }
27 libc_hidden_def(snprintf)
28 
29 #endif
30