Pure C and Serial (ArduinoUNO)

Arduino is open source and AFAIK Serial is a derived class of the Print class.

The source for all of that including the SoftwareSerial library should have come with your IDE.