Files
Arquivotheca.SunOS-4.1.3/lib/libc/stdio/4.2/vsprintf.c
seta75D 2e8a93c394 Init
2021-10-11 18:20:23 -03:00

27 lines
540 B
C

#if !defined(lint) && defined(SCCSIDS)
static char sccsid[] = "@(#)vsprintf.c 1.1 92/07/30 SMI"; /* from S5R2 1.1 */
#endif
/*LINTLIBRARY*/
#include <stdio.h>
#include <varargs.h>
#include <values.h>
extern int _doprnt();
/*VARARGS2*/
char *
vsprintf(string, format, ap)
char *string, *format;
va_list ap;
{
FILE siop;
siop._cnt = MAXINT;
siop._base = siop._ptr = (unsigned char *)string;
siop._flag = _IOWRT+_IOSTRG;
(void) _doprnt(format, ap, &siop);
*siop._ptr = '\0'; /* plant terminating null character */
return(string);
}