.WRITE - reference or change the current write unit.

Alternate Entry Name: _WRITE

Usage:

B:
   oldunit = .write( [newunit] );
C:
   int _write( [int newunit] );

Where:

newunit
is an optional argument specifying the unit which is to become the current write unit.
oldunit
receives the number of the old write unit.

Description:

.WRITE returns the number of the current write unit. If a new unit is specified as an argument, it becomes the current write unit.

Notes:

Unlike most I/O functions in the UW Tools library, .WRITE does not accept FILE* pointers or IOV pointers; it only accepts unit numbers.

Copyright © 1996, Thinkage Ltd.