Chapter Contents

Previous

Next
TTREAD

TTREAD



Reads characters from the channel assigned by TTOPEN

Language element: function
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 parameter 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


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.