vsprintf-none.c 246 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
#include <stdarg.h>
#include <pp-printf.h>
/*
 * empty vsprintf: only the format string. Public domain
 */
int pp_vsprintf(char *buf, const char *fmt, va_list args)
{
	char *str = buf;

	for (; *fmt ; ++fmt)
		*str++ = *fmt;
	return str - buf;
}