view nuc-fw/sprintf/vsprintf.c @ 136:3b5c3f3646fb

RV bring-up: lack of timer ticks fixed, still investigating the lack of "system time" messages from the RVT task
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 04 Nov 2013 23:35:11 +0000
parents 947b1f473960
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);
}