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 [thread overview]
Message-ID: <c=DE%a=SKO%p=BaySGV%l=M9900S98.SER-971201153700Z-42706@m9900s98.asa.izb-soft.de> (raw)
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.
next reply other threads:[~1997-12-01 7:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-12-01 7:38 Dietmar.Kuehl [this message]
1997-12-01 11:19 ` Orn E. Hansen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='c=DE%a=SKO%p=BaySGV%l=M9900S98.SER-971201153700Z-42706@m9900s98.asa.izb-soft.de' \
--to=dietmar.kuehl@asa.izb-soft.de \
--cc=egcs@cygnus.com \
--cc=oe.hansen@oehansen.pp.se \
--cc=oliva@dcc.unicamp.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).