comparison nuc-fw/sprintf/vsprintf.c @ 79:947b1f473960

beginning of nuc-fw
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 11 Aug 2013 07:17:25 +0000
parents
children
comparison
equal deleted inserted replaced
78:2c266d4339ff 79:947b1f473960
1 #include <stdarg.h>
2
3 int
4 vsprintf(str, fmt, ap)
5 va_list ap;
6 char *str, *fmt;
7 {
8 char *strptr;
9 int len;
10
11 strptr = str;
12 len = _doprnt(fmt, ap, &strptr);
13 *strptr = '\0';
14 return(len);
15 }