Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ outp(DOS) — Xenix 2.3.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

inp(DOS)



     OUTP(DOS)                XENIX System V                 OUTP(DOS)



     Name
          outp - Writes a byte to an output port.

     Syntax
          #include <conio.h>

          int outp (port, value);
          unsigned port;
          int value;

     Description
          The outp function writes the specified value to the output
          port specified by port.  The port argument can be any
          unsigned integer in the range 0 to 65,535.  value can be any
          integer in the range 0 to 255.

     Return Value
          outp returns value.  There is no error return.

     See Also
          inp(DOS)

     Example
          #include <conio.h>

          int port, byte_val;      .       .       .  /* The following
          statement outputs a byte to the port ** that 'port' is
          currently set to.  */

          outp (port,byte_val);

     Notes
          This call must be compiled with the -dos flag.






















     Page 1                                           (printed 8/7/87)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026