_inp, _inpw

Description

Input a byte (_inp) or a word (_inpw) from a port.

#include <conio.h> Required only for function declarations  

int _inp( unsigned port );

unsigned _inpw( unsigned port );

port Port number  

Remarks

The _inp and _inpw functions read a byte and a word, respectively, from the specified input port. The input value can be any unsigned integer in the range 0 – 65,535.

Return Value

The functions return the byte or word read from port. There is no error return.

Compatibility

Standards:None

16-Bit:DOS

32-Bit:None

See Also

_outp, _outpw

Example

See the example for _outp.