Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!mp.cs.niu.edu!ux1.cso.uiuc.edu!osiris.cso.uiuc.edu!gordon From: gordon@osiris.cso.uiuc.edu (John Gordon) Newsgroups: comp.lang.c Subject: Re: Help: how to output to a port such as a RS232? Message-ID: <1991Jun11.233106.6042@ux1.cso.uiuc.edu> Date: 11 Jun 91 23:31:06 GMT References: <1991Jun11.135431.22955@udecc.engr.udayton.edu> Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 16 jli@udecc.engr.udayton.edu (Staff-Jinghong _ Li) writes: >Help needed: would someone tell me how to send output >to a port such as a RS232? Any sepcial commands? >If the address of the port is known, hwo to declare >it as a FILE pointer? ... Well, if you are using Turbo C on a PC, there are some functions: inport(), inportb(), outport(), outportb() (I think those are the names) whose uses are to read and write from ports. --- John Gordon Internet: gordon@osiris.cso.uiuc.edu #include gordon@cerl.cecer.army.mil #include