8 ms·
I really don't think the author is fluent in C. They consistently put semicolons after brackets, and they have off-by-1 errors in array indexing, etc (the first
by mlyle 6y ago
I really don't think the author is fluent in C. They consistently put semicolons after brackets, and they have off-by-1 errors in array indexing, etc (the first search_ok looks past the end of string; the second search_ok won't see ok in the string "ok"). That's part of why I read it that way.
I understand the concern over excessive pedantry.
- klodolph 6y agoMy experience is that C programmers with many years of experience will still make off-by-one errors. Most of the examples have the correct bounds. The semicolons don’t belong but… so what? If you wish to report errors to the author, there is an email address at the bottom: > Please drop me email about bug(s) and/or suggestion(s):