isblank() implementation.
[minix.git] / lib / libc / stdio / sprintf.c
blob5fe46af36ceb8869967a05c5a3bda1104cac3e63
1 /*
2 * sprintf - print formatted output on an array
3 */
4 /* $Header$ */
6 #include <stdio.h>
7 #include <stdarg.h>
8 #include <limits.h>
9 #include "loc_incl.h"
11 int
12 sprintf(char *s, const char *format, ...)
14 va_list ap;
15 int retval;
17 va_start(ap, format);
19 retval = vsnprintf(s, INT_MAX, format, ap);
21 va_end(ap);
23 return retval;