Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <conio.h>
    unsigned long inpd( int port );

Description:
    The inpd function reads a double-word (four bytes) from the 80x86
    hardware port whose number is given by port.

    A hardware port is used to communicate with a device.  One or two bytes
    can be read and/or written from each port, depending upon the hardware.
    Consult the technical documentation for your computer to determine the
    port numbers for a device and the expected usage of each port for a
    device.

Returns:
    The value returned is the double-word that was read.

Example:
    #include <conio.h>
    #define DEVICE 34

    void main()
      {
        unsigned long transmitted;

        transmitted = inpd( DEVICE );
      }

Classification:
    Intel

Systems:
    DOS/32, Win386, Win32, QNX/32, OS/2-32, Netware

See Also:
    inp, inpw, outp, outpd, outpw

See Also: inp inpw

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