INP(DOS) XENIX System V INP(DOS)
Name
inp - Returns a byte.
Syntax
#include <conio.h>
int inp (port);
unsigned port;
Description
The inp function reads one byte from the input port
specified by port. The port argument can be any unsigned
integer number in the range 0 to 65,535.
Return Value
inp returns the byte read from port. There is no error
return.
See Also
outp(DOS)
Example
#include <conio.h>
unsigned port; char result;
.
.
.
/* The following statement inputs a byte from the port **
that 'port' is currently set to. */
result = inp (port);
Notes
This call must be compiled with the -dos flag.
Page 1 (printed 8/7/87)