comparison target-utils/libprintf/vsprintf.c @ 11:40f607bb0a2c

target-utils refactored
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Wed, 01 May 2013 07:39:35 +0000
parents loadagent/libprintf/vsprintf.c@5c7b3d5d5702
children
comparison
equal deleted inserted replaced
10:e2e80a09338e 11:40f607bb0a2c
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 }