FreeCalypso > hg > freecalypso-sw
view loadagent/libprintf/vsprintf.c @ 7:aa1f6fe16fef
loadtools building blocks started
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Tue, 30 Apr 2013 07:19:48 +0000 |
parents | 5c7b3d5d5702 |
children |
line wrap: on
line source
#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); }