problem with substr() or string ?

Dawit Yimam Dawit.Yimam@gmd.de
Sat Apr 1 00:00:00 GMT 2000


Benjamin Kosnik wrote:

> I get this with CVS libstdc++-v3 on x86/linux:
>
> <bkoz@haight> /mnt/hd/bliss/src.libstdc++/testsuite
> %a.out
> 1
> 1
> 1
>
> ?
>

As Matthew indicated, I think my poblem is with the getline. I am using
gcc 2.95.2 (on a Solaris 2.6) and use its libstdc++. I have checked that
I am not having a CRLF line termination problem. I seem to have a char
at the end of the lines which the getline doesn't extract and drop. Any
suggestion how I could track it ?

Thanks.

Dawit




More information about the Libstdc++ mailing list