[comp.lang.c] How do I access com ports in Microware 4.0 C?

megabyte@chinet.uucp (Dr. Megabyte) (08/20/87)

Just a quick querry to releive me hours of trial and error, about 
3 days of which I have already been through.

Could some one please send me example code, or just describe how
to:

1) Open a com (COM1, COM2) port
2) Change the baud rate, parity, and other communications paramters
3) Having done the above, read and write chars from the com port.

The above pertains the Microsoft 'C' version 4.00 and MS-DOS
version 3.1.  2.1 MS-DOS would be nice, but not needed.

Please E-mail me the answer unless this REALLY is a topic for
discussion.
-- 
UUCP:	(1) seismo!why_not!scsnet!sunder		Mark E. Sunderlin
	(2) ihnp4!chinet!megabyte			aka Dr. Megabyte
CIS:	74026,3235					(202) 634-2529
Mail:	IRS  PM:PFR:D:NO  1111 Constitution Ave. NW  Washington,DC 20224