delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/07/06/15:53:24

From: ebachalo AT cygnus DOT com (Eric Bachalo)
Subject: Re: printf + long long
6 Jul 1998 15:53:24 -0700 :
Message-ID: <3.0.5.32.19980706151214.00a59800.cygnus.cygwin32.developers@pop.cygnus.com>
References: <m0ytIEv-00111SC AT malasada DOT lava DOT net>
Mime-Version: 1.0
To: newsham AT lava DOT net (Tim Newsham), cygwin32-developers AT cygnus DOT com

I just left a meeting where this problem was brought up as a side issue.
It is being looked into and should be resolved shortly.  Thank you for
pointing it out.  I heard that it may require both minor newlib and minor
cygnwin changes.

Best Regards,
Eric Bachalo

At 10:51 AM 7/6/98 -1000, Tim Newsham wrote:
>
>Hi,
>
>    Printf doesnt seem to handle long long formatting options
>properly:
>
>      long long x;
>
>      x = (long long)5 << 32 | 4;
>      printf("%llx %d\n", x, 3);
>
>will print "5 4" instead of "500000004 3" like it should.  It looks
>like newlib has support for %ll and %q formatting options but that
>they are conditionally compiled.  Perhaps its just a matter of rebuilding
>newlib with the proper definitions?
>
>                                            Tim N.

Eric Bachalo                 e-mail: ebachalo AT cygnus DOT com
Win32 Project Manager        direct: 408-542-9635
Cygnus Solutions               main: 408-542-9600
1325 Chesapeake Terrace         fax: 408-542-9699
Sunnyvale, CA, 94089 USA        web: http://www.cygnus.com

- Raw text -


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