home *** CD-ROM | disk | FTP | other *** search
- /*
- main.c -- prints argument count, arguments from RUN line
- */
-
- main(argc,argv)
- int argc;
- char **argv;
- {
- int i;
-
- printf("argc = %d\n",argc);
- for (i = 0; i < argc; i++)
- printf("argv[%d]: |%s|\n",i,argv[i]);
-
- puts("Base arg is the name which called RUN/C.");
- /* illustrates args to main() */
- /* place several words after RUN before hitting <enter> */
- /* Result: each argument passed to main is counted and */
- /* listed within vertical brackets */
-
- }
-