6 /* Append an input line to a String.
8 * Returns a pointer to the character string (or 0).
9 * Leading whitespace and newlines are removed.
11 * Empty lines and lines starting with '#' are ignored.
14 s_getline(Biobuf *fp, String *to)
22 if ((c = Bgetc(fp)) < 0)
25 /* take care of inconsequentials */
27 /* eat leading white */
28 while(c==' ' || c=='\t' || c=='\n' || c=='\r')
34 /* take care of comments */
44 /* if we got here, we've gotten something useful */
48 /* gather up a line */
54 return len ? to->ptr-len : 0;
64 return len ? to->ptr-len : 0;