Previous Page | Next Page

Functions and CALL Routines under OpenVMS

TTWRITE Function: OpenVMS



Writes characters to the channel assigned by TTOPEN.
Category: Terminal-Access
OpenVMS specifics: All aspects are host-specific

Syntax
Details
See Also

Syntax

TTWRITE(channel,buffer,<size>)

channel

is the channel variable returned from the TTOPEN function.

buffer

is the character variable, character literal, or an expression that contains the data to be written.

size

is an optional numeric variable, numeric literal, or expression that specifies how many characters to write from buffer. If you do not specify size, the entire buffer is sent, including any trailing blanks.


Details

If the TTWRITE function executes successfully, the return value is 0. Otherwise, the return value is the OpenVMS error code that indicates why it failed.

The TTWRITE function does not supply any carriage control. You must insert into the buffer any carriage-control characters that you want.


See Also

Previous Page | Next Page | Top of Page