Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C Moderated > Re: Length of S...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 1092 of 1134
Post > Topic >>

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.
 




 3 Posts in Topic:
Length of Strings in an Arrray (at compile-time)
"Paul" <-@[E  2008-05-05 16:01:45 
Re: Length of Strings in an Arrray (at compile-time)
=?ISO-8859-1?Q?Hans-Bernh  2008-05-07 01:38:05 
Re: Length of Strings in an Arrray (at compile-time)
Jack Klein <jackklein@  2008-05-07 01:39:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 15:51:43 CDT 2008.