delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/10/27/13:19:18

From: sarnold AT coyote DOT rain DOT org (Stephen L Arnold)
Subject: Is this a bug, or what?
27 Oct 1998 13:19:18 -0800 :
Message-ID: <199810270229.SAA09029.cygnus.gnu-win32@coyote.rain.org>
Reply-To: sarnold AT earthling DOT net
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Howdy:

Earnie suggested I post this one, so here goes:

I'm using the cygwin stuff for my C homework, and I can't figure 
out if this should work or not.  In the attached code (the classic 
Fibonacci sequence problem) the regular (long) integers start 
wrapping at n=46.

The gcc docs say long long ints are supported, but I can't seem to 
make it work (and I've tried various format specifiers).  As the 
output shows, sizeof returns the correct sizes of long (=int) and 
long long (ie, long long is twice as big).

Questions: Are long long ints supported on a 32-bit platform (ie, 
PCs)?  If so, how do I use them? (what am I doing wrong?)  Is there 
some kind of #define, or another include file that I need?

Thanks in advance, Steve


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

- Raw text -


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