FreeCalypso > hg > freecalypso-sw
diff nuc-fw/sprintf/vsprintf.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/vsprintf.c Sun Aug 11 07:17:25 2013 +0000 @@ -0,0 +1,15 @@ +#include <stdarg.h> + +int +vsprintf(str, fmt, ap) + va_list ap; + char *str, *fmt; +{ + char *strptr; + int len; + + strptr = str; + len = _doprnt(fmt, ap, &strptr); + *strptr = '\0'; + return(len); +}