comparison gsm-fw/sprintf/sprintf.c @ 143:afceeeb2cba1

Our nuc-fw is destined to become gsm-fw, so I went ahead and did the big hg mv
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 12 Nov 2013 05:35:48 +0000
parents nuc-fw/sprintf/sprintf.c@947b1f473960
children 7e45ada9c365
comparison
equal deleted inserted replaced
142:15d5977390c2 143:afceeeb2cba1
1 #include <stdarg.h>
2
3 int
4 sprintf(char *strdest, char *fmt, ...)
5 {
6 va_list ap;
7 char *strptr;
8 int len;
9
10 strptr = strdest;
11 va_start(ap, fmt);
12 len = _doprnt(fmt, ap, &strptr);
13 va_end(ap);
14 *strptr = '\0';
15 return(len);
16 }