serial port reading

Hai there,

Can any one provide me with a ansi c source code for
opening com1 or com2 and read data. The port is connected to
another serial communication device on rs232 port.

The o/s is Sco Unix 5.0.6

Matter urgent

Viswanath