On Tue, 16 Jul 2002, Sisyphus wrote:

> How does one retrieve the size of (number of elements contained in) such an
> item ?

You don't.  C arrays are just pointers and don't carry size information.
If your array is a NULL-terminated C string then you can use strlen(), but
that won't work for numeric data.  Mostly you'll just have to pass the
length of the array around with the array.

Note that this is more of a C programming question than an Inline
question.  You might get a better answer in a C programming forum.

-sam


Reply via email to