[Tim, pondering] > ... But suppose I search "from the right", and ensure the buffer is > free of null bytes before the fgets. Even better, suppose I ensure the buffer is free of both null bytes and newlines before the fgets; then if I search from the *left* for a newline and find one, it must be that fgets found a line and it ends right there, and this should usually obtain. There's no need to search from the right unless I don't find a newline ...
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4