Stefan Sayer writes:

  if you remove this, the last character of the last line will be 
  disregarded in cases where it is used like this
          next = get_next_line(s);
          string line(s, int(next-s)-2);

stefan,

if the last line has

index 0  1  2  3  4  5
      ----------------
      a  b  c  cr lf 0

current version of get_next_line makes next=5 and length in line definition
becomes 5-0-2 = 3, which is correct.

-- juha
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to