Created
August 22, 2011 11:11
-
-
Save beastaugh/1162156 to your computer and use it in GitHub Desktop.
Figure out if your Mac is running a case sensitive filesystem.
This file contains 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 <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