update for HEAD-2003021201
[reactos.git] / lib / crtdll / misc / debug.c
1 #include <windows.h>
2 #include <stdarg.h>
3 #include <stdio.h>
4 #include <string.h>
5
6
7 void debug_printf(char* fmt, ...)
8 {
9    va_list args;
10    char buffer[255];
11    HANDLE OutputHandle;
12    
13    AllocConsole();
14    OutputHandle = GetStdHandle(STD_OUTPUT_HANDLE);
15    va_start(args,fmt);
16    vsprintf(buffer,fmt,args);
17    WriteConsoleA(OutputHandle, buffer, strlen(buffer), NULL, NULL);
18    va_end(args);
19 }