view sprintf/old/vsprintf.c @ 31:f4da114088af

use the new "hybrid" version of cdginc headers
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 15 Oct 2016 04:04:27 +0000
parents 75a11d740a02
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);
}