delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/11/18/21:00:59

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Martin Ambuhl <mambuhl AT earthlink DOT net>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: printf() doesn't print long long intege, maybe RHIDE problem
References: <437d9a13 AT news DOT bezeqint DOT net> <9krff.1763$wf DOT 538 AT newsread3 DOT news DOT atl DOT earthlink DOT net> <437e55e2 DOT 279951667 AT localhost>
In-Reply-To: <437e55e2.279951667@localhost>
Lines: 17
Message-ID: <Cxvff.2173$N45.189@newsread1.news.atl.earthlink.net>
Date: Sat, 19 Nov 2005 01:50:26 GMT
NNTP-Posting-Host: 165.247.25.105
X-Complaints-To: abuse AT earthlink DOT net
X-Trace: newsread1.news.atl.earthlink.net 1132365026 165.247.25.105 (Fri, 18 Nov 2005 17:50:26 PST)
NNTP-Posting-Date: Fri, 18 Nov 2005 17:50:26 PST
Organization: EarthLink Inc. -- http://www.EarthLink.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Scott wrote:
> On Fri, 18 Nov 2005 21:03:01 GMT, Martin Ambuhl <mambuhl AT earthlink DOT net>
> wrote:
> 
> 
>>>printf() do not print long long integer.
>>
>>Show us how it fails.  Here is an example of it working:
> 
> <snip example>
> 
> Here's another example:
> 
> 	printf("%llX\n", (long long)-1);

If you mean an example of undefined behavior.  The %llX specifier 
expects an unsigned long long; (long long)-1 is not unsigned.

- Raw text -


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