minix/lib/libc/stdio/sprintf.c
Ben Gras 7c4cd0e6b0 - new pread(), fnmatch() calls
- split sprintf() and snprintf() to solve a linking problem when
   compiling an application
2010-02-25 17:08:08 +00:00

25 lines
331 B
C

/*
* sprintf - print formatted output on an array
*/
/* $Header$ */
#include <stdio.h>
#include <stdarg.h>
#include <limits.h>
#include "loc_incl.h"
int
sprintf(char *s, const char *format, ...)
{
va_list ap;
int retval;
va_start(ap, format);
retval = vsnprintf(s, INT_MAX, format, ap);
va_end(ap);
return retval;
}