Hacker News new | ask | show | jobs
by stellalo 211 days ago
you also need check_if_negative to detect close-before-open
1 comments

The counter is at 0, which indicates an error ... that plus the counter being non-zero when reaching the end of input is the entire point.