FreeCalypso > hg > freecalypso-citrine
view sprintf/old/sprintf.c @ 44:70c9bb37bd74
configs/fcdev3b-std: DISABLE_SLEEP=1 for the current state of the hw
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 09 Sep 2017 16:23:19 +0000 |
parents | 75a11d740a02 |
children |
line wrap: on
line source
#include <stdarg.h> int sprintf(char *strdest, char *fmt, ...) { va_list ap; char *strptr; int len; strptr = strdest; va_start(ap, fmt); len = _doprnt(fmt, ap, &strptr); va_end(ap); *strptr = '\0'; return(len); }