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
As the C reference says, you cannot do this unless either the last element is unique or you pass a count of array elements to the function.