FreeCalypso > hg > freecalypso-sw
view loadagent/libprintf/vsprintf.c @ 10:e2e80a09338e
fc-sertool actually works; output from loadagent is visible!
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Wed, 01 May 2013 03:41:42 +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); }