Skip to content

Instantly share code, notes, and snippets.

@rxbynerd
Created September 20, 2011 08:44
Show Gist options
  • Save rxbynerd/1228663 to your computer and use it in GitHub Desktop.
Save rxbynerd/1228663 to your computer and use it in GitHub Desktop.
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main (int argc, char* argv[]) {
if (argc < 2) {
printf("Needs an argument\n");
exit(1);
}
printf("%d\n", (int) strlen(argv[1]));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment