int loadRainData(FILE *fp, char sites[6], double rf[64][6]) {
int row = sizeof(rf) / sizeof(rf[0]);
printf("Number of rows: %d\n", row);
return row;
}
I dont understand how to get the amount of rows in my function. There is 7(right now but this is dynamic) values in rf[this guy][6]; I am trying to find how many values there are. Thank you for your help!
sizeofto guess how many rows there are, pass that in as an explicit argument. This must be done at the caller, this function does not have the information it needs.