by mmcconnell17704@[EMAIL PROTECTED]
Feb 16, 2007 at 03:47 PM
Here's the answer. A bigdatum doesn't contain a pointer-to-char, as
if I had written
char *id;
in the struct definition. Rather, it contains a complete array of 200
chars. In the original version of indexToId, x contains a copy of
those 200 chars. So yes,
char *result = x.id;
makes result point to the copy.
--
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
-- you must
have an appropriate newsgroups line in your header for your mail to be
seen,
or the newsgroup name in square brackets in the subject line. Sorry.