parse.c
/* the return value is the number of characters in the line
   not including trailing CR*LF */
the return value is the number of characters in the line
not including trailing CR*LF
the return value is the number of characters in the line not including trailing CR * LF
long scan_line(unsigned char *input, long len, long *offset,
	       long *line, long *line_len)
{
   int cnt;
   long tmp;
   cnt = scan_char(input, len, offset, '\012', line, line_len);
   tmp = (*line>=0)?*line:*offset;
   while ((cnt > 0) && (input[tmp+cnt-1] == '\015'))
      cnt--;
   return(cnt);
}
long scan_line ( unsigned char * input , long len , long * offset , long * line , long * line_len ) { int cnt ; long tmp ; cnt = scan_char ( input , len , offset , ' \012 ' , line , line_len ) ; tmp = ( * line >= 0 ) ? * line : * offset ; while ( ( cnt > 0 ) && ( input [ tmp + cnt - 1 ] == ' \015 ' ) ) cnt -- ; return ( cnt ) ; }
the return value is the number of characters in the line
not including trailing CR*LF
the return value is the number of characters in the line not including trailing CR * LF
/* strip off trailing CR */