PREV INDEX NEXT

Author: Unknown
Subject: Removing trailing newlines from input from file(s)
Date: Sunday, 15 Mar 2020, 12:09:02

When using getline() to get lines from a file, is there an easier way to remove trailing newlines than writing a function that traverses the line buffer after calling getline() until it finds a newline and then reallocating the line buffer and removing the newline if it finds one?
PREV INDEX NEXT