FreeCalypso > hg > freecalypso-citrine
view sprintf/old/sprintf.c @ 20:5fd4e7669c93
l1_confg.h: band-aid fix for DSP_DEBUG_TRACE_ENABLE with L1_DYN_DSP_DWNLD
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 10 Jun 2016 08:56:53 +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); }