Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>inport() input from hardware port</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 inport()                Input from Hardware Port

 #include   <dos.h>

 int        inport(port)
 int        port;                        Specified port

    inport() reads a word from 'port'.

       Returns:     The value read from 'port'.

   Portability:     8086-Family of processors only.

   -------------------------------- Example ---------------------------------

    The following statements read a word from port 'x'.

           #include <dos.h>     /* for inport */

           main()
           {
               int val;

               val = inport(x);
           }


See Also: inportb() outport() outportb()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson