ReactOS  0.4.14-dev-293-g2b39b42
args.c
Go to the documentation of this file.
1 #include <stdarg.h>
2 #include <string.h>
3 #include <stdio.h>
4 #include <windows.h>
5 
8 
9 void debug_printf(char* fmt, ...)
10 {
11  va_list args;
12  char buffer[255];
13 
14  va_start(args,fmt);
17  va_end(args);
18 }
19 
20 
21 int main(int argc, char* argv[])
22 {
23  int i;
24 
25  AllocConsole();
28 
29  printf("GetCommandLineA() %s\n",GetCommandLineA());
30  debug_printf("GetCommandLineA() %s\n",GetCommandLineA());
31  debug_printf("argc %d\n", argc);
32  for (i=0; i<argc; i++)
33  {
34  debug_printf("Argv[%d]: %x\n",i,argv[i]);
35  debug_printf("Argv[%d]: '%s'\n",i,argv[i]);
36  }
37  return 0;
38 }
39 
static int argc
Definition: ServiceArgs.c:12
BOOL WINAPI AllocConsole(VOID)
Definition: console.c:48
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
HANDLE InputHandle
Definition: args.c:7
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:152
GLuint buffer
Definition: glext.h:5915
#define argv
Definition: mplay32.c:18
Definition: match.c:390
void debug_printf(char *fmt,...)
Definition: args.c:9
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define va_end(ap)
Definition: acmsvcex.h:90
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleA(IN HANDLE hConsoleOutput, IN CONST VOID *lpBuffer, IN DWORD nNumberOfCharsToWrite, OUT LPDWORD lpNumberOfCharsWritten, LPVOID lpReserved)
Definition: readwrite.c:1470
smooth NULL
Definition: ftsmooth.c:416
char * va_list
Definition: acmsvcex.h:78
#define STD_INPUT_HANDLE
Definition: winbase.h:264
LPSTR WINAPI GetCommandLineA(VOID)
Definition: proc.c:2003
#define STD_OUTPUT_HANDLE
Definition: winbase.h:265
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
Definition: sprintf.c:733
HANDLE OutputHandle
Definition: args.c:6
#define va_start(ap, A)
Definition: acmsvcex.h:91
int main(int argc, char *argv[])
Definition: args.c:21
#define args
Definition: format.c:66
Definition: dsound.c:943
#define printf
Definition: config.h:203