From: marc@watson.ibm.com (Marc Auslander)
Subject: printf and long long
25 Apr 1997 07:59:46 -0700
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <9704242041.AA37542.cygnus.gnu-win32@marc.watson.ibm.com>
Reply-To: marc@watson.ibm.com
X-External-Networks: yes 
Original-To: gnu-win32@cygnus.com
Original-Sender: owner-gnu-win32@cygnus.com

It appears that printf of long long is broken.  The value printed is
wrong, and subsequent arguements are mishandled.  All this works
correctly on AIX gcc.  A test case which faults on gnu-win32 is:

main()
{
    long long l;
    l=1000000000;
    l=l*10;
    printf("%lld %s\n",l,"test");
}

If you don't try to print the second arg, you just get a bad value.

I didn't see anything in the archives about this.


Marc Auslander   <marc@watson.ibm.com>   914 945-4346  (Tieline 862 Fax x4426)


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
