[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: Re: gettext and inttypes.h]

From: Andrew Clausen
Subject: Re: address@hidden: Re: gettext and inttypes.h]
Date: Thu, 25 Oct 2001 11:08:10 +1000
User-agent: Mutt/1.2.5i

On Wed, Oct 24, 2001 at 09:46:37PM +0200, Martin v. Loewis wrote:
> Bruno has suggested a different approach.
> Regards,
> Martin
> ------- Start of forwarded message -------
> From: Bruno Haible <address@hidden>
> A different, simpler recommendation is the following code:
>    char buf1[100];
>    char buf2[100];
>    sprintf (buf1, "%" PRIx64, (*gpt)->Signature);
>    sprintf (buf2, "%" PRIx64, GPT_HEADER_SIGNATURE);
>    printf (_("GUID Partition Table Header Signature is wrong: %s should be 
> %s", buf1, buf2);
> This one has the advantages: 1. no double-format strings, 2. no extra
> memory allocation.

The (long long) approach shares those advantages.  It also doesn't require
extra local variables.  Also, everything fits in one command.

Any religious (or otherwise) objections to (long long)?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]