Skip to content

Instantly share code, notes, and snippets.

@beastaugh
Created August 22, 2011 11:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beastaugh/1162156 to your computer and use it in GitHub Desktop.
Save beastaugh/1162156 to your computer and use it in GitHub Desktop.
Figure out if your Mac is running a case sensitive filesystem.
#include <stdio.h>
#include <unistd.h>
int main(void) {
if (pathconf("/", _PC_CASE_SENSITIVE)) {
printf("The file system is case sensitive\n");
} else {
printf("The file system is case insensitive\n");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment