C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Port I/O Functions
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The _inp and _inpw functions read a byte and a word, respectively,
     from the specified input port. The _outp and _outpw functions
     write a byte and a word, respectively, to the specified output
     port.
 
     The <port> argument can be any unsigned integer in the range
     0-65,535. The <databyte> argument can be any integer in the range
     0-255. The <dataword> argument can be any value in the range
     0-65,535.
 
     Return Value
 
     The _inp and _inpw functions return the byte or word read from
     <port>. The _outp and _outpw functions return the data that was
     output. There is no error return.
                                    -♦-