secondary cache feature in vm.
[minix.git] / lib / libc / stdio / snprintf.c
blobefe4c4491b63010067517fc5232af8dcb8dccf05
1 /*
2 * snprintf - print limited 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 snprintf(char *s, size_t n, const char *format, ...)
14 va_list ap;
15 int retval;
17 va_start(ap, format);
19 retval = vsnprintf(s, n, format, ap);
21 va_end(ap);
23 return retval;