networking · beginner · ~15 min
Verify the assembled message length.
Implement int all_received(const int *per_read, int n, int expected) returning 1 if the sum of the n per-read byte counts equals expected, else 0.
int all_received(const int *per_read, int n, int expected) {
/* TODO */
return 0;
}
Solve this exercise in the browser editor — compile and run against the test harness, no setup required.