comparison target-utils/libprintf/vsprintf.c @ 0:e7502631a0f9

initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 11 Jun 2016 00:13:35 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e7502631a0f9
1 #include <stdarg.h>
2
3 extern void _sprintf_putchar();
4
5 int
6 vsprintf(str, fmt, ap)
7 va_list ap;
8 char *str, *fmt;
9 {
10 char *strptr;
11 int len;
12
13 strptr = str;
14 len = _doprnt(fmt, ap, &_sprintf_putchar, &strptr);
15 *strptr = '\0';
16 return(len);
17 }