ack/lang/cem/libcc/stdio/sprintf.c

21 lines
377 B
C
Raw Normal View History

1987-03-31 10:45:53 +00:00
/* $Header$ */
1987-01-27 15:57:55 +00:00
#include <stdio.h>
char *sprintf(buf,format,args)
char *buf, *format;
int args;
{
FILE _tempfile;
_tempfile._fd = -1;
_tempfile._flags = IO_WRITEMODE + IO_UNBUFF;
_tempfile._buf = (unsigned char *) buf;
_tempfile._ptr = (unsigned char *) buf;
_tempfile._count = 32767;
1987-01-28 14:28:45 +00:00
_doprnt(format, &args, &_tempfile);
1987-01-27 15:57:55 +00:00
putc('\0',&_tempfile);
return buf;
}