reactos/reactos/lib/crtdll/conio/cprintf.c
Boudewijn Dekker e8cbdde2a7 moved some header files from top level to crtdll directory
svn path=/trunk/; revision=365
1999-04-02 21:44:11 +00:00

17 lines
301 B
C

#include <crtdll/stdio.h>
#include <crtdll/conio.h>
int
cprintf(const char *fmt, ...)
{
int cnt;
char buf[ 2048 ]; /* this is buggy, because buffer might be too small. */
va_list ap;
va_start(ap, fmt);
cnt = vsprintf(buf, fmt, ap);
va_end(ap);
cputs(buf);
return cnt;
}