79823899

Date: 2025-11-18 22:13:23
Score: 0.5
Natty:
Report link

@Andrew Henle, numerous standard C function that are also specified to return -1 on an error --> Off hand, I can think of 2 sets: time() & friends and various wc...(). The are many I/O functions that return EOF, yet that is not specified as -1 - just some negative. Posix I/O functions could have done likewise.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Andrew
  • Single line (0.5):
  • Looks like a comment (1):
  • High reputation (-2):
Posted by: chux