Re: [current tinderbox] failure on alpha/alpha

From: Sten Spans <sten_at_blinkenlights.nl>
Date: Tue, 15 Mar 2005 12:15:30 +0100 (CET)
On Tue, 15 Mar 2005, Philip Paeps wrote:

>> *** Error code 1
>
> Ugh, looks like I broke this...
>
> Is there a special magical format to use to printf a time_t without having it
> break on at least one of the architectures we support?

The only portable way seems to be strftime.
But almost nobody bothers.

strftime(output, sizeof(output), "%s", gmtime(&data->uptime));

-- 
Sten Spans

"There is a crack in everything, that's how the light gets in."
Leonard Cohen - Anthem
Received on Tue Mar 15 2005 - 10:15:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:30 UTC