Last active
December 13, 2015 19:39
-
-
Save allquixotic/4964682 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//C99 program that prints out the supplied command line arguments and exits. WTFPL | |
//Compile with `gcc -std=c99 pcae.c -o pcae` | |
#include <stdio.h> | |
int main(int argc, char **argv) | |
{ | |
for(int i = 0; i < argc; i++) | |
{ | |
printf("argument %d: %s\n", i, argv[i]); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment