In C: How do you find the number of elements in an array of structs, after sending it to a function?
int main(void) { myStruct array[] = { struct1, struct2
You can't tell number of elements in an array in C consistently. Specially if you pass the array around through pointers.
Usually, if you must use array size in a function, pass it as a parameter to it.