Mail Archives: cygwin-developers/1998/07/06/14:24:53

From: newsham AT lava DOT net (Tim Newsham)
Subject: printf + long long
6 Jul 1998 14:24:53 -0700 :
Message-ID: <>
Mime-Version: 1.0
To: cygwin32-developers AT cygnus DOT com


    Printf doesnt seem to handle long long formatting options

      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.

- Raw text -

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