HomeManualTopicsTypesSymbols

std::readln_from

reads a line from the specified input channel

Parameter

fd
the input channel

Results

None

Description

The function might block until the input channel is ready to deliver more data.

The read data is treated as binary bytes.

The newline character is included in the returned string.

This function needs I/O-access rights.

Example

readln_from! $line STDIN_FILENO

Topic

Input-Output

See also

std::read_from_until reads data from the specified input channel until a specific sentinel is encountered
std::read_from reads data from the specified input channel