Init
This commit is contained in:
27
lib/libc/stdio/sys5/vsprintf.c
Normal file
27
lib/libc/stdio/sys5/vsprintf.c
Normal file
@@ -0,0 +1,27 @@
|
||||
#if !defined(lint) && defined(SCCSIDS)
|
||||
static char sccsid[] = "@(#)vsprintf.c 1.1 94/10/31 SMI"; /* from S5R2 1.1 */
|
||||
#endif
|
||||
|
||||
/*LINTLIBRARY*/
|
||||
#include <stdio.h>
|
||||
#include <varargs.h>
|
||||
#include <values.h>
|
||||
|
||||
extern int _doprnt();
|
||||
|
||||
/*VARARGS2*/
|
||||
int
|
||||
vsprintf(string, format, ap)
|
||||
char *string, *format;
|
||||
va_list ap;
|
||||
{
|
||||
register int count;
|
||||
FILE siop;
|
||||
|
||||
siop._cnt = MAXINT;
|
||||
siop._base = siop._ptr = (unsigned char *)string;
|
||||
siop._flag = _IOWRT+_IOSTRG;
|
||||
count = _doprnt(format, ap, &siop);
|
||||
*siop._ptr = '\0'; /* plant terminating null character */
|
||||
return(count);
|
||||
}
|
||||
Reference in New Issue
Block a user