Skip to content

Instantly share code, notes, and snippets.

@meatballhat
Created November 11, 2013 22:44
Show Gist options
  • Select an option

  • Save meatballhat/7421916 to your computer and use it in GitHub Desktop.

Select an option

Save meatballhat/7421916 to your computer and use it in GitHub Desktop.
oh, OSX, why don't you have proper guts?
#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