pcp
[Top] [All Lists]

Re: [pcp] pmcd on mac rsize ~1.8GB

To: Max Matveev <makc@xxxxxxxxx>
Subject: Re: [pcp] pmcd on mac rsize ~1.8GB
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Mon, 15 Nov 2010 15:37:24 +1100 (EST)
Cc: Nate Pearlstein <darknater@xxxxxxxxxxxxx>, pcp@xxxxxxxxxxx
In-reply-to: <19680.46333.631517.569650@xxxxxxxxxxxx>
----- "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

<Prev in Thread] Current Thread [Next in Thread>