Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

_inp, _inpw, _inpd

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

int _inp( 
   unsigned short port 
);
unsigned short _inpw( 
   unsigned short port 
);
unsigned long _inpd( 
   unsigned short port 
);

Parameter

port
Port number.

Return Value

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

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.

Requirements

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

All versions of the C run-time libraries.

See Also

Console and Port I/O Routines | _outp | Run-Time Routines and .NET Framework Equivalents

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.