Hi!
I am currently getting frustrated about a problem I have been thinking about for ages.
If I have a function:
void in_array_cp(char *haystack[],char *needle)
{
...
}
which is supposed to find out if an array (haystack) contains a certain element(needle), I need to know the number of elements in the array to be able to scan through it. Is there a way to find the number of elements in the array or do I need to pass it as another parameter?
Thx
by the way: I am using GCC3.3.1 on SuSE Linux9
Start Free Trial