networking · beginner · ~15 min
Bound the epoll_wait maxevents.
Implement int cap_maxevents(int requested, int cap) returning requested capped at cap, at least 1.
int cap_maxevents(int requested, int cap) {
/* TODO */
return 1;
}
Solve this exercise in the browser editor — compile and run against the test harness, no setup required.