Hello to all C geeks
My query is as follows
i declare a variable in main as
UINT8 *c[5]
if i check for sizeof(c) it returns 20, i.e 20/4 = 5 elements.
This is fine .
Now i have a function
void func(UINT8 **s,/*other args*/)
and i call this function from main passing c as first argument for s.
Now my problem is that inside the func when i call sizeof(s) it shows 4
i.e the size of one char pointer.
So there is no way for me to know exactly how many elements are there
in the argument.
I have a feeling that it is not possible in C as it dosnt support RTTI
stuff and all but
i will appreciate if anyone can help me or give me some alternative.
thanks in advance & with best regards
shyam