FreeCalypso > hg > freecalypso-sw
view gsm-fw/sprintf/old/vsprintf.c @ 145:7e45ada9c365
gsm-fw: sprintf overhaul in preparation for adding %f format support
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Thu, 14 Nov 2013 17:51:33 +0000 |
parents | gsm-fw/sprintf/vsprintf.c@afceeeb2cba1 |
children |
line wrap: on
line source
#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); }