Skip to content

Instantly share code, notes, and snippets.

@allquixotic
Last active December 13, 2015 19:39
Show Gist options
  • Save allquixotic/4964682 to your computer and use it in GitHub Desktop.
Save allquixotic/4964682 to your computer and use it in GitHub Desktop.
//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