reading from a parallel port

Wolfram Roesler wolfram at cip-s08.informatik.rwth-aachen.de
Thu Apr 11 21:50:45 AEST 1991


djk at ux1.cso.uiuc.edu (Doug Kelly) writes:

>Hello, Im trying to write a program to interface to my Epson ES-300C color
>scanner.  It uses a bi-directional parallel interface, and i cant figure out
>how to 'read' from a parallel port.  Im using borland turbo c, any help would
>be appreciated.  Thanks

This is not a C question since C has no standard mechanism to read from
interfaces. The answer to your question is dependant upon the OS you are
using. In Unix for example all ports can be accessed via files in the /dev
directory. There is no OS-independant solution.
Sorry
Okami-san



More information about the Comp.lang.c mailing list