Volker Stolz wrote:
Without the 3rd arg is according to POSIX (check your Solaris man page).
'buf' is required to be at least 26 bytes.

You're right, but it does not compile without the 3rd argument! Maybe this is due to gcc_4.0.3_s10 ? Should one simply rely on ctime?

Cheers Christian

man ctime_r

char *ctime_r(const time_t *clock, char *buf, int buflen);

     The ctime_r() function has the same functionality as ctime()
     except  that the caller must supply a buffer buf with length
     buflen to store the result; buf must be at least  26  bytes.
     The  standard-conforming  ctime_r() function does not take a
     buflen parameter.
_______________________________________________
Glasgow-haskell-users mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to