C source code for functions

Hello,
Is there anywhere I can look at the source code for the predefined functions used in the Arduino alpha software. For example, the digitalRead() function, how is it working. I would like to see source code in C if it exist. Just trying to improve my skills.
thanks and have a great day!
Rico

Hi Rico,

Look in the directory where you installed your arduino code and find the directory called hardware, the arduino source code is an a directory below this: hardware\cores\arduino

digitalRead is in:
hardware\cores\arduino\wiring_digital.c

Have fun!