From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dietmar.Kuehl@asa.iZB-Soft.de To: oliva@dcc.unicamp.br, oe.hansen@oehansen.pp.se Cc: egcs@cygnus.com Subject: AW: Strings and Integers? Date: Mon, 01 Dec 1997 07:38:00 -0000 Message-id: X-SW-Source: 1997-12/msg00020.html Hi, > > I find close to unusable :-) The reason, is that it appears >implemented as "pascal strings"... This is probably because you haven't closely paid attention to the documentation (like eg. found in the DWP): > cout.form(" => %8.2f (%d:%s)", v, str.length(), str.data()) << endl; 'data()' is indeed defined to return the internal representation, potentially without a terminating '\0'! Use 'c_str()' if you want a '\0' terninated representation.