A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-January/011376.html below:

[Python-Dev] Rehabilitating fgets

[Python-Dev] Rehabilitating fgets [Python-Dev] Rehabilitating fgetsTim Peters tim_one@email.msn.com
Sat, 6 Jan 2001 17:34:42 -0500
[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