strip_eol
static int strip_eol(char *linebuf, int *plen);
eol = strip_eol(linebuf, &len);
next_eol = strip_eol(linebuf, &len);