mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:42:59 +00:00
Minor improvements.
svn path=/trunk/; revision=700
This commit is contained in:
parent
a23adc0492
commit
7975fc7fe7
1 changed files with 6 additions and 5 deletions
|
@ -10,7 +10,7 @@ void debug_printf(char* fmt, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
char buffer[255];
|
char buffer[255];
|
||||||
|
|
||||||
va_start(args,fmt);
|
va_start(args,fmt);
|
||||||
vsprintf(buffer,fmt,args);
|
vsprintf(buffer,fmt,args);
|
||||||
WriteConsoleA(OutputHandle, buffer, strlen(buffer), NULL, NULL);
|
WriteConsoleA(OutputHandle, buffer, strlen(buffer), NULL, NULL);
|
||||||
|
@ -21,17 +21,18 @@ void debug_printf(char* fmt, ...)
|
||||||
void main(int argc, char* argv[])
|
void main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
AllocConsole();
|
AllocConsole();
|
||||||
InputHandle = GetStdHandle(STD_INPUT_HANDLE);
|
InputHandle = GetStdHandle(STD_INPUT_HANDLE);
|
||||||
OutputHandle = GetStdHandle(STD_OUTPUT_HANDLE);
|
OutputHandle = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||||
|
|
||||||
printf("GetCommandLineA() %s\n",GetCommandLineA());
|
printf("GetCommandLineA() %s\n",GetCommandLineA());
|
||||||
debug_printf("GetCommandLineA() %s\n",GetCommandLineA());
|
debug_printf("GetCommandLineA() %s\n",GetCommandLineA());
|
||||||
|
debug_printf("argc %d\n", argc);
|
||||||
for (i=0; i<argc; i++)
|
for (i=0; i<argc; i++)
|
||||||
{
|
{
|
||||||
debug_printf("Args: %x\n",argv[i]);
|
debug_printf("Argv[%d]: %x\n",i,argv[i]);
|
||||||
debug_printf("Args: '%s'\n",argv[i]);
|
debug_printf("Argv[%d]: '%s'\n",i,argv[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue