Skip to content

rose_getline

Reads a line of text from a stream.

Synopsis

Declared in <rose_getline.h>

[[visibility]]
std::string
rose_getline(FILE* stream);

Description

This function reads an entire line from stream and returns the line along with any line termination characters that were present. Returns an empty string when the end of the stream is reached. NUL characters that appear as part of the input are preserved in the return value.

@{

Return Value

Line content including terminators, or empty string on EOF.

Parameters

Name

Description

stream

Input stream.

Created with MrDocs