6 /* Append an input line to a String.
8 * Returns a pointer to the character string (or 0).
9 * Trailing newline is left on.
12 s_read_line(Biobuf *fp, String *to)
18 sysfatal("can't s_read_line a shared string");
20 cp = Brdline(fp, '\n');
24 if(to->end - to->ptr < llen)
26 memmove(to->ptr, cp, llen);