Serial Cable Comunication

how to do a serial comunication in C?
I need to set Bps, Parity, etc…