view gsm-fw/sprintf/old/vsprintf.c @ 832:c14bc60c6c30

gsm-fw/g23m-glue/cst: import from Leonardo source
author Space Falcon <falcon@ivan.Harhan.ORG>
date Thu, 23 Apr 2015 06:45:55 +0000
parents 7e45ada9c365
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);
}