Skip to content

Instantly share code, notes, and snippets.

@yinyin
Created January 13, 2013 04:48
Show Gist options
  • Save yinyin/4522365 to your computer and use it in GitHub Desktop.
Save yinyin/4522365 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(int argc, char *argv[])
{
int i;
printf("%d arguments.\n", argc);
for(i = 0; i < argc; i++) {
printf("%02d@%p: %s\n", i, argv[i], argv[i]);
}
return 0;
}
/*
vim: ts=4 sw=4 ai nowrap
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment