Reads from TTY into buf until delimiter del occurs. The
number of bytes read is returned in n.
The function returns the following error codes:
E_BOUNDS if end of buffer is reached.E_READ if the read operation failed.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(tty_type), | intent(inout) | :: | tty |
TTY type. |
||
| character(len=*), | intent(inout) | :: | bytes |
Input buffer. |
||
| character(len=*), | intent(in) | :: | del |
Delimiter. |
||
| integer(kind=i8), | intent(out), | optional | :: | nbytes |
Number of bytes read. |