Hey I have something of this type
eph_t *a;
The type is eph_t as you can see. Its an array in C but I do not know the size of the array nor
As others have said, it is unsafe to iterate over an array when you do not know the end of the array. This is often worked around in the following way.
int a[10];) for example. you can use the sizeof operator to determine the array's size. Please note this WILL NOT WORK when passing a pointer to an array to a function.memset is a good example)So if you are designing a function that takes an array as a parameter, please use the above patterns. If you are using a function that does not use one of the above pattern, report the problem to the library designer as a bug.