What does read() return at end of file?

Q

What does read() return at end of file?

✍: Guest

A

0
A defined (but false) 0 value is the proper indication of the end of file for read() and sysread().

2013-09-09, 1976👍, 0💬