public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* AW: Strings and Integers?
@ 1997-12-01  7:38 Dietmar.Kuehl
  1997-12-01 11:19 ` Orn E. Hansen
  0 siblings, 1 reply; 2+ messages in thread
From: Dietmar.Kuehl @ 1997-12-01  7:38 UTC (permalink / raw)
  To: oliva, oe.hansen; +Cc: egcs

Hi,
>
> I find <string> 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* AW: Strings and Integers?
  1997-12-01  7:38 AW: Strings and Integers? Dietmar.Kuehl
@ 1997-12-01 11:19 ` Orn E. Hansen
  0 siblings, 0 replies; 2+ messages in thread
From: Orn E. Hansen @ 1997-12-01 11:19 UTC (permalink / raw)
  To: Dietmar.Kuehl; +Cc: oliva, oe.hansen, egcs

Dietmar.Kuehl@ASA.IZB-SOFT.de writes:
 > 
 > This is probably because you haven't closely paid attention to the
 > documentation
 > 
 That is very true... a good case of RTFM :-)

 Actually, I read the header file and was looking for it but it
skipped me by.

 And thanks for being patient with me guys... and I complement you for 
a good project!


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-12-01 11:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-01  7:38 AW: Strings and Integers? Dietmar.Kuehl
1997-12-01 11:19 ` Orn E. Hansen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).