[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
address@hidden: Re: gettext and inttypes.h]
From: |
Martin v. Loewis |
Subject: |
address@hidden: Re: gettext and inttypes.h] |
Date: |
Wed, 24 Oct 2001 21:46:37 +0200 |
User-agent: |
REMI/1.14.2 (Hokuhoku-Ōshima) Chao/1.14.1 (Rokujizō) APEL/10.2 Emacs/20.7 (i386-suse-linux) MULE/4.0 (HANANOEN) |
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.
Bruno
------- End of forwarded message -------
- address@hidden: Re: gettext and inttypes.h],
Martin v. Loewis <=