|
|
researchv10 Norman
/* @(#)vsprintf.c 1.1 */
/*LINTLIBRARY*/
#include <stdio.h>
#include <varargs.h>
extern int _doprnt();
/*VARARGS2*/
int
vsprintf(string, format, ap)
char *string, *format;
va_list ap;
{
register int count;
FILE siop;
siop._cnt = 32767;
siop._base = siop._ptr = (unsigned char *)string;
siop._flag = _IOWRT;
siop._file = _NFILE;
count = _doprnt(format, ap, &siop);
*siop._ptr = '\0'; /* plant terminating null character */
return(count);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.