Skip to content

Instantly share code, notes, and snippets.

@frr149
Created August 30, 2012 14:54
Show Gist options
  • Save frr149/3530103 to your computer and use it in GitHub Desktop.
Save frr149/3530103 to your computer and use it in GitHub Desktop.
int main(int argc, const char * argv[], const char *envp[], const char *apple[])
{
// insert code here...
NSLog(@"Printing argv:");
for (int i = 0; i < argc; i++) {
NSLog(@"%s\n", argv[i]);
}
NSLog(@"Printing envp");
for (int i = 0; envp[i]; i++) {
NSLog(@"%s", envp[i]);
}
NSLog(@"Printing Apple's deepest secrets");
for (int i = 0; apple[i]; i++) {
NSLog(@"%s", apple[i]);
}
return 42;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment