1 /* fgetline: Read one line of input and return a pointer to
2 that line. Necessary space is obtained from malloc.
3 (char *) NULL is returned on EOF.
5 Andy Dougherty doughera@lafcol.lafayette.edu
7 Lafayette College, Easton PA 18042
9 This fgetline implementation was written by Andrew Dougherty
10 <doughera@lafayette.edu>. I hearby place it in the public domain.
11 As a courtesy, please leave my name attached to the source.
13 This code comes with no warranty whatsoever, and I take no
14 responsibility for any consequences of its use.
17 char *fgetln(FILE *fp, size_t *length);