Skip to content

Instantly share code, notes, and snippets.

@doolin
Created January 24, 2011 05:07
Show Gist options
  • Save doolin/792864 to your computer and use it in GitHub Desktop.
Save doolin/792864 to your computer and use it in GitHub Desktop.
Simple string hoo hah for argc, argv
#include <stdio.h>
#include <string.h>
int
main(int argc, char ** argv) {
while (argc--) {
printf("Arg %d: %s, strlen: %lu\n",argc, argv[argc], strlen(argv[argc]));
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment