delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/11/16:40:26

Message-ID: <38F365A3.98BBD45B@cyberoptics.com>
From: Eric Rudd <rudd AT cyberoptics DOT com>
Organization: CyberOptics
X-Mailer: Mozilla 4.72 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: long long in printf()
References: <20000410 DOT 154104 DOT -410679 DOT 5 DOT roberts DOT j DOT whitlock AT juno DOT com> <8cttev DOT 3vs6k6b DOT 0 AT buerssner-17104 DOT user DOT cis DOT dfn DOT de>
Lines: 17
Date: Tue, 11 Apr 2000 12:49:23 -0500
NNTP-Posting-Host: 38.196.93.9
X-Trace: client 955475369 38.196.93.9 (Tue, 11 Apr 2000 13:49:29 EDT)
NNTP-Posting-Date: Tue, 11 Apr 2000 13:49:29 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Dieter Buerssner wrote:

>   printf("unsigned long long ull is %Lu, in hex this is 0x%Lx\n", ull, ull);
>
>   return 0;
> }
>
> So, use the "L" modifier for long long type.

I think using the "ll" modifier would be preferable, since it is not only
acceptable to gcc, but is also the "long long" modifier specified by C99.  One
might as well be ready for the standard when it arrives.  (In C99, the "L"
modifier is reserved for long doubles.)

-Eric Rudd
rudd AT cyberoptics DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019