Skye Huang Skye Huang - 1 year ago 94
C Question

Where to find C source code on mac?

I was looking through a programming textbook and saw a particular header i didn't recognize. Later I looked it up on the internet but I was wondering where the source code of C can be found on a macbook. Is it just in the compiler? (I use gcc) Please help.

Answer Source

The source code to much of the OS/X operating system and utilities, including the C library can be found at .

The source for the current version of the C library is here: .

For other packages installed via brew or macports, use the corresponding command to retrieve the source for the packages. Look at the man page to see how.

Note that the gcc command actually runs clang on recent versions of XCode under OS/X. Try gcc --version...

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download