mpaland/printf

Suggestion: vprintf()

phillipjohnston opened this issue · 0 comments

Hello,

I think you could add a vprintf implementation as below. I've done this for my libc, but feel free to incorporate it on your end. (vprintf is required by libc++)

int vprintf(const char *restrict format, va_list va)
{
	char buffer[1];
	return _vsnprintf(_out_char, buffer, (size_t)-1, format, va);
}