FreeCalypso > hg > freecalypso-sw
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gsm-fw/sprintf/sprintf.c Tue Nov 12 05:35:48 2013 +0000 @@ -0,0 +1,16 @@ +#include <stdarg.h> + +int +sprintf(char *strdest, char *fmt, ...) +{ + va_list ap; + char *strptr; + int len; + + strptr = strdest; + va_start(ap, fmt); + len = _doprnt(fmt, ap, &strptr); + va_end(ap); + *strptr = '\0'; + return(len); +}