Re: Length of Strings in an Arrray (at compile-time)
by =?ISO-8859-1?Q?Hans-Bernhard_Br=F6ker?= <HBBroeker@[EMAIL PROTECTED]
>
May 7, 2008 at 01:38 AM
Paul wrote:
> How do I find the length of strings within an array at compile time?
The same way you should do it for strings outside an array. No, this:
> #define StringLength(index) MyStrings[index+1] - MyStrings[index]
is not that way. sizeof() exists for a reason.
--
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.