|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
_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 );
- Port number.
The functions return the byte, word, or double word read from port. There is no error return.
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.
For additional compatibility information, see Compatibility in the Introduction.
All versions of the C run-time libraries.