home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Serving the Web
/
ServingTheWeb1995.disc1of1.iso
/
linux
/
slacksrce
/
d
/
libc
/
libc-4.6
/
libc-4
/
libc-linux
/
libbsd
/
snprintf.c
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-03-07
|
285 b
|
16 lines
/* snprintf.c - emulate BSD snprintf with sprintf - rick sladkey */
#include <stdio.h>
#include <stdarg.h>
int snprintf(char *s, int len, char *format, ...)
{
va_list args;
int result;
va_start(args, format);
result = vsprintf(s, format, args);
va_end(args);
return result;
}