title: A way to return error with time_t function in C
body: <p>I'm currently writing a C function that return a time_t value but I need to manage error cases (because this function uses I/O functions) too.
  Is it correct to use (time_t) -1 as an error indicator?</p>