Path: utzoo!attcan!uunet!ispi!jbayer From: jbayer@ispi.UUCP (Jonathan Bayer) Newsgroups: comp.sys.ibm.pc Subject: Re: Accessing the comm port with MS C Message-ID: <448@ispi.UUCP> Date: 7 Feb 89 13:57:58 GMT References: <411@lakart.UUCP> Reply-To: jbayer@ispi.UUCP (Jonathan Bayer) Organization: Intelligent Software Products, Inc. Lines: 32 In article <411@lakart.UUCP> dg@lakart.UUCP (David Goodenough) writes: >I've just been landed with a project to write some software that communicates >with the modem and printer ports on a PC. I'm going to be using MS C V5.1, >but I have no real idea how to go about writing / reading / testing the >state of the ports. I need the following: > >1. Check if the modem port has a character to read >2. Get that character >3. Write a character to the modem port >4. Write a character to the printer port Look into the book: C Programmer's Guide to Serial Communications written by Joe Campbell published by Howard Sams and Co. JB -- Jonathan Bayer Beware: The light at the end of the Intelligent Software Products, Inc. tunnel may be an oncoming dragon 19 Virginia Ave. ...uunet!ispi!jbayer Rockville Centre, NY 11570 (516) 766-2867 jbayer@ispi