view sprintf/old/sprintf.c @ 24:da9056962fb7

services/pcm/pcmdata.c: re-enable EFR, but not AMR yet
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 11 Jun 2016 05:14:36 +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);
}