It seems that (type-name) returns the default value for the type.
Consider the following code:
#include <time.h>
#include <stdio.h>
int main() {
printf("value: %ld\n", ((time_t) -1));
printf("value: %d\n", ((int) -1));
}
Use gcc code.c to compile it. Running ./.aout produces:
value: -1
value: -1
I am using GCC 8.1.0 on Ubuntu 16.04.5 LTS.
And TIME(2) man page has the following text:
On error, ((time_t) -1) is returned, and errno is set appropriately.
I browsed the C11 language specification N1570. But I can't find a description about the above usage.