Created
November 11, 2013 22:44
-
-
Save meatballhat/7421916 to your computer and use it in GitHub Desktop.
oh, OSX, why don't you have proper guts?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdlib.h> | |
| #include <stdio.h> | |
| int | |
| main(int argc, char **argv) { | |
| if (argc < 2) { | |
| fprintf(stderr, "Missing arg, derp.\n"); | |
| return 1; | |
| } | |
| for (int i = 1; i < argc; i++) { | |
| printf("%s\n", realpath(argv[i], NULL)); | |
| } | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment