Thread with 4 posts
jump to expanded postNeither ISO/IEC 9899:1999 (“ISO C99”) nor IEEE Std 1003.1-2001
(“POSIX.1”) requires time() to set errno on failure; thus, it is impossible
for an application to distinguish the valid time value -1
(representing
the last UTC second of 1969) from the error return value.
so many people talking about y2k38, we forgot to consider y1k969 (or all the overflows after y2k38)
i’ll be so happy if rust, swift and friends are the death of special integer values indicating errors…
@hikari they’re good integers.
@steve ‘wht?’ is a good integer. ‘wht?’ is my friend
-1 is a bad integer >:c