home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************/
- /* */
- /* Module: args.c - Display argc and argv expansions */
- /* */
- /* Programmer: George R. Woodside */
- /* */
- /* Date: January 6, 1987 */
- /* */
- /****************************************************************************/
-
- #include <stdio.h>
- #include <osbind.h>
-
- main(argc,argv)
- int argc;
- char *argv[];
- {
- register int i;
-
- printf("args: argc is %d\n",argc); /* show number of arguments */
-
- for(i=0; i<argc; i++)
- printf("%2d %s\n",i,argv[i]); /* then print each one */
-
- printf("\n(Press any key.) "); /* prompt for a key press */
- Crawcin(); /* and wait for it */
- printf("\n"); /* be neat */
- } /* not the world's most complex c */
-