view gsm-fw/sprintf/old/sprintf.c @ 843:7666dd5df2bc

gsm-fw: libgdi.a added to the link with CONFIG_INCLUDE_PS gtamodem-gsm build almost passes, now only CST is missing
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sat, 25 Apr 2015 19:49:37 +0000
parents 7e45ada9c365
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);
}