Bug: printf() in combination with long long

Stefan Briesenick stefan.briesenick@csc.deutsche-leasing.de
Sun Jan 31 23:52:00 GMT 1999


Hello!

try this:

#include <stdlib.h>

int main(void)
{
   unsigned long long var1, var2, var2;

   var1 = 12345;
   var2 = 54321;
   var3 = 98765;

   printf("wrong: %Lu - %Lu - %Lu\n",var1,var2,var3);

   printf("right: %Lu - ",var1);
   printf("%Lu - ",var2);
   printf("%Lu\n",var3);

   return 0;
}


this program produces following Output:

wrong: 12345 - 0 - 54321
right: 12345 - 54321 - 98765

seems to be a stack-problem?

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



More information about the Cygwin mailing list