FreeCalypso > hg > freecalypso-citrine
comparison sprintf/old/sprintf.c @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:75a11d740a02 |
---|---|
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 } |