Introduction: Raspberry Pi Writing C Code for Raspberry Pi
In this tutorial we will be looking at our first GPIO (General Purpose I/O) programming with the gcc C compiler. Library files and pin out information for the raspberry pi can be found at the links below.
Raspberry Pi Pin Out and example C code
http://elinux.org/RPi_Low-level_peripherals
Raspberry Pi GPIO Library Files
http://www.airspayce.com/mikem/bcm2835/