mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:42:57 +00:00
17 lines
301 B
C
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;
|
|
}
|