From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4162 Path: news.gmane.org!not-for-mail From: Matthew Fernandez Newsgroups: gmane.linux.lib.musl.general Subject: printf format macros Date: Tue, 29 Oct 2013 13:28:22 +1100 Message-ID: <526F1D46.30604@nicta.com.au> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1383013918 11771 80.91.229.3 (29 Oct 2013 02:31:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Oct 2013 02:31:58 +0000 (UTC) To: Original-X-From: musl-return-4166-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 29 03:32:03 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Vaz6B-0002Si-D7 for gllmg-musl@plane.gmane.org; Tue, 29 Oct 2013 03:32:03 +0100 Original-Received: (qmail 29991 invoked by uid 550); 29 Oct 2013 02:32:02 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 28469 invoked from network); 29 Oct 2013 02:28:56 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 X-TM-AS-Product-Ver: SMEX-11.0.0.1191-7.000.1014-20254.003 X-TM-AS-Result: No--6.809900-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No Xref: news.gmane.org gmane.linux.lib.musl.general:4162 Archived-At: Hi all, This may be a silly question, but why does there seem to be no 64-bit compatibility in the printf macros in inttypes.h? The relevant section is: 25 #if UINTPTR_MAX =3D=3D UINT64_MAX 26 #define __PRI64 "l" 27 #else 28 #define __PRI64 "ll" 29 #endif as compared to Glibc's: 49 # if __WORDSIZE =3D=3D 64 50 # define __PRI64_PREFIX "l" 51 # define __PRIPTR_PREFIX "l" 52 # else 53 # define __PRI64_PREFIX "ll" 54 # define __PRIPTR_PREFIX 55 # endif We use Musl C on 32- and 64-bit platforms and I'm looking for a way to write printf format strings word-length-independently in an application. I'm not currently subscribed to the list so please CC me personally when replying. Thanks in advance, Matthew ________________________________ The information in this e-mail may be confidential and subject to legal pro= fessional privilege and/or copyright. National ICT Australia Limited accept= s no liability for any damage caused by this email or its attachments.