Anonymous user
Talk:Longest string challenge: Difference between revisions
m
→bounds checking in C: comment
(→bounds checking in C: the unsightly but more correct code (why do we worry about bounds in *this* example?)) |
m (→bounds checking in C: comment) |
||
Line 305:
while (fgets(line, LINE_MAX, stdin)) {
/* check that fgets didn't truncate line, or result will be wrong */
assert(gt(dec(LINE_MAX), length(line)));
|