comparison gsm-fw/sprintf/old/vsprintf.c @ 145:7e45ada9c365

gsm-fw: sprintf overhaul in preparation for adding %f format support
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 14 Nov 2013 17:51:33 +0000
parents gsm-fw/sprintf/vsprintf.c@afceeeb2cba1
children
comparison
equal deleted inserted replaced
144:ea819b60fe0d 145:7e45ada9c365
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 }