Share via


_inp, _inpw, _inpd

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

int_inp(unsignedshortport**);**

unsignedshort_inpw(unsignedshortport**);**

unsignedlong_inpd(unsignedshortport**);**

Routine Required Header Compatibility
_inp <conio.h> Win 95
_inpw <conio.h> Win 95
_inpd <conio.h> Win 95

For additional compatibility information, see Compatibility in the Introduction.

Libraries

LIBC.LIB Single thread static library, retail version
LIBCMT.LIB Multithread static library, retail version
MSVCRT.LIB Import library for MSVCRT.DLL, retail version

Return Value

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

Parameter

port

Port number

Remarks

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

Console and Port I/O Routines

See Also   _outp