FreeCalypso > hg > freecalypso-sw
diff target-utils/libprintf/vsprintf.c @ 11:40f607bb0a2c
target-utils refactored
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Wed, 01 May 2013 07:39:35 +0000 |
parents | loadagent/libprintf/vsprintf.c@5c7b3d5d5702 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/target-utils/libprintf/vsprintf.c Wed May 01 07:39:35 2013 +0000 @@ -0,0 +1,17 @@ +#include <stdarg.h> + +extern void _sprintf_putchar(); + +int +vsprintf(str, fmt, ap) + va_list ap; + char *str, *fmt; +{ + char *strptr; + int len; + + strptr = str; + len = _doprnt(fmt, ap, &_sprintf_putchar, &strptr); + *strptr = '\0'; + return(len); +}