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);
main loop in parse_sdp_line_ex goes like this:
while(*s != '\0'){
...
s = get_next_line(s);
}
based on this the semantics of get_next_line is to return 0 if there are
no next lines left.
why it is not possible to change the code you show in above to check if
next line actually exists?
-- juha
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev