PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs223] Newline at the end of line variable
Date: Monday, 24 Feb 2020, 07:36:39


    > Message Posted By: Unknown
    >
    > When applying rules, should we worry about the newline character at the
    > end of the variable "line"? As in, could there be rules where Fi is a
    > newline character, and if so should we be modifying the newline at the end
    > of "line"?

As stated in the specification:

  Since the Fi and Ti fields and the input lines returned by getline() are
  strings, they cannot contain null characters.  For simplicity strwrs may
  also assume that there are no newlines in the Fi and Ti fields (and need not
  fail gracefully if they are present).  ...

--Stan-
PREV INDEX NEXT