Command Prompt for Windows

int arg_c

char *arg_v[]

Global variables that contains the number of command line arguments (ie. arg_c) and the actual command line arguments (ie. arg_v).


arg_c and arg_v is provided for compatibility with the standard library argc and argv, which is past to a normal C or C++ main(), and has the following format :-

#include "stdio.h"

int main(int argc, char *argv[])

and a WinOne® Command Prompt external command main(), has the following format :-

#include "woio.h"

int main(void)
    /* arg_c is used instead of argc */
    /* arg_v is used instead of argv */

When using arg_c and arg_v, avoid using the arg...() family of functions, since arg_c and arg_v do not separate command line arguments and command line switches.

See Also

argc, argv, argn, args