>>>>> "miyata" == miyata <[EMAIL PROTECTED]> writes:
miyata> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> wrote:
>> I added a cast there. Thanks.
miyata> This is not a correct fix, since time() is not supposed to
miyata> return -1 even if it fails.
On my Digital Unix 4.0 box, the man page says:
RETURN VALUES
Upon successful completion, the time() function returns the value of time
in seconds since the Epoch. Otherwise, the value (time_t)-1 is returned.
And on linux, it says:
RETURN VALUE
On success, the value of time in seconds since the Epoch
is returned. On error, ((time_t)-1) is returned, and
errno is set appropriately.
JMarc