home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 9
/
FreshFishVol9-CD2.bin
/
bbs
/
gnu
/
libnix-0.8-src.lha
/
libnix-0.8
/
sources
/
nix
/
stdio
/
vsprintf.c
< prev
next >
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
|
1994-12-12
|
354 b
|
19 lines
#include <stdio.h>
#include <stdarg.h>
#include <limits.h>
int vsprintf(char *s,const char *format,va_list args)
{
int retval;
FILE buffer;
buffer.p=s;
buffer.flags=0x208;
buffer.outcount=INT_MAX;
buffer.incount=0;
buffer.linebufsize=0;
buffer.tmpp=NULL;
retval=vfprintf(&buffer,format,args);
fputc('\0',&buffer);
return retval;
}