----- "Max Matveev" <makc@xxxxxxxxx> wrote:
> On Mon, 15 Nov 2010 15:06:00 +1100 (EST), Nathan Scott wrote:
>
> ctime returns a pointer to internal array in libc - I didn't feel
> like roaching in there to chomp the line feed. The alternative I was
> considering is to allocate a temporary, copy then chomp - I can see
> now that the same effect can be achived with strcpy(ctim,
> ctime(NOW));
Ah, OK, good. :)
> nathans> Its not used anywhere else in pcp, and is unlikely to build
> nathans> on at least one supported platform. :)
>
> ctime_r is supposed to be POSIX and, AFAIK, supported platform claims
> to be POSIX-compliant.
Win32 API gives us ANSI C but not POSIX.
cheers.
--
Nathan
|