Date: Tue, 25 Aug 1998 15:05:22 +0300 (IDT) From: Eli Zaretskii 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.