[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: One more C question
Jordan Bettis said:
> Is there any way to find the size of an array that is refrenced by a
> pointer? I need to find the size of **argv (or *argv[] if you would
> prefer). wouldn't sizeof() just give me that of the pointer, not what it
> is pointing to? I need to find the size of one string, not the entire
> array of strings. so it would be like argv[known][need to know].
I think strlen() is about all you can do.
Steve
--
steve@silug.org | Linux Users of Central Illinois
(618)398-7320 | Meetings the 4th Tuesday of every month
Steven Pritchard | http://www.luci.org/ for more info
--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.