cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/25/14:46:12

Date: Tue, 25 Aug 1998 15:05:22 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: tonyblaha AT juno DOT com
cc: djgpp AT delorie DOT com
Subject: Re: reading/writing to COM ports
In-Reply-To: <19980823.222639.6511.0.tonyblaha@juno.com>
Message-ID: <Pine.SUN.3.91.980825150353.7520X-100000@is>
MIME-Version: 1.0

On Sun, 23 Aug 1998 tonyblaha AT juno DOT com wrote:

> I'm a very new C programmer, and I was wanting to write a small
> speed-dial program with djgpp for msdos. How can I read/write from a COM
> port? Looking at the documentation I thought maybe I could use "inp" and
> "outp" from PC.H, but I don't know how to use them.

If you only need to output several strings to the port, you could try to 
use the predefined stream `stdaux'.  You use it the same as `stdout', 
only `stdaux' is open in binary mode.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019