Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main (int argc, char *argv[])
- {
- int count;
- printf ("This program was called with \"%s\".\n",argv[0]);
- if (argc > 1)
- {
- for (count = 1; count < argc; count++)
- {
- printf("argv[%d] = %s\n", count, argv[count]);
- }
- }
- else
- {
- printf("The command had no other arguments.\n");
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment