Previous Page | Next Page

Functions and CALL Routines under OpenVMS

TTREAD Function: OpenVMS



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

Syntax
Details
See Also

Syntax

TTREAD(channel,buffer,<size>)

channel

is the channel variable returned from the TTOPEN function.

buffer

is the character variable where the returned characters are stored.

size

is an optional numeric variable, numeric literal, or an expression which indicates the maximum number of characters to read and receives the number of characters read. If you do not specify size, the TTREAD function reads characters up to the size of buffer. The handling of extra characters is determined by the BUFFERFULL option specified with the TTOPEN function.


Details

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


See Also

Previous Page | Next Page | Top of Page