Share via


_outp, _outpw, _outpd

Output a byte(_outp), a word(_outpw), or a double word (_outpd) at a port.

int_outp(unsignedshortport**,intdatabyte);**

unsignedshort_outpw(unsignedshortport**,unsignedshortdataword);**

unsignedlong_outpd(unsignedshortport**,unsignedlongdataword);**

Routine Required Header Compatibility
_outp <conio.h> Win 95
_outpw <conio.h> Win 95
_outpd <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 data output. There is no error return.

Parameters

port

Port number

databyte, dataword

Output values

Remarks

The _outp, _outpw, and _outpd functions write a byte, a word, and a double word, respectively, to the specified output port. The port argument can be any unsigned integer in the range 0 – 65,535; databyte can be any integer in the range 0 – 255; and dataword can be any value in the range of an integer, an unsigned short integer, and an unsigned long integer, respectively.

Console and Port I/O Routines

See Also   _inp