3 ms·
Especially when the man page for readdir() mentions that you should set errno=0 if you want to distinguish errors from end-of-stream. Not like setting errno=0
by BenjiWiebe 1y ago
Especially when the man page for readdir() mentions that you should set errno=0 if you want to distinguish errors from end-of-stream.
Not like setting errno=0 before calling readdir() is a novel idea...