Files
heimdal/lib/roken/snprintf.c
Björn Groenvall 8d904e4fb6 Use includes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@443 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-04-29 11:56:03 +00:00

21 lines
284 B
C

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
RCSID("$Id$");
#include "roken.h"
#include <stdio.h>
#include <stdarg.h>
int snprintf(char *s, int n, const char *fmt, ...)
{
int ret;
va_list ap;
va_start(ap, fmt);
ret = vsprintf(s, fmt, ap);
va_end(ap);
return ret;
}