[comp.sys.ibm.pc] Looking for sample C code using ser

cuddy@convex.UUCP (11/09/87)

> I would like to see a short bit of C that opens the serial port
> on a PC, and reads or writes from/to it.  I am using MSC 4.0, and
> my call to open the port is not succeeding.  If you have a short example
> that has been shown to run properly, I would appreciate seeing it.
> 
> Also, I can't find any reference to how one configures the port (baud rate,
> etc).  I've checked the DOS tech ref man, but the information isn't there.
> Where should I look for this info ?

For this info, I refered to a piece of code on one of the PC-SIG public domain
disks.  There is a file on one of them called PIBASYNC.PAS (340 something) and
it has a complete interrupt driven serial driver for the PC.  (I't took 30 min
to convert to "C")  It supports baud rates to 9600 but you can tweak it to
18.2k baud i've been told.  I'm using it (in heavily modified form) to build
a BBS system.  As far as looking up the info, you might look in the Peter
Norton series of books (he's a wimp, but there is sometimes some ok info in
the books). Hope this helps.
					Mike Cuddy
					inhp4!convex!cuddy

/* ---
	"What's a boinger?" -- Milo Bloom, Bloom County
 --- */