FreeCalypso > hg > freecalypso-sw
diff nuc-fw/sprintf/sprintf.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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nuc-fw/sprintf/sprintf.c Sun Aug 11 07:17:25 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); +}