Author: Dave Gomboc
Date: 12:00:47 09/22/99
Go up one level in this thread
On September 22, 1999 at 15:00:12, Dave Gomboc wrote:
>On September 22, 1999 at 14:32:00, David Eppstein wrote:
>
>>On September 22, 1999 at 13:36:11, Robert Hyatt wrote:
>>>There is a problem doing this for me. 64 bit ints are not yet ANSI-standard.
>>>If a compiler supports them, you can use them. But _if_ you want to print them,
>>>portability becomes an issue. IE in gcc I can use %lld to print one and it
>>>works just fine. But that breaks other compilers. If we can get a group that
>>>can give me a working 'format specification' that works on each compiler that
>>>supports this, I can perhaps #define something and switch the node counter to
>>>a long long/_int64...
>>
>>What's wrong with
>>
>>void printlonglong(FILE f, long long x)
>>{
>> if (x > 9) printlonglong(f,x/10);
>> putc(f,x%10 + '0');
>>}
>>
>>?
>
>"long long x" isn't ANSI C, for starters.
>
>Dave
Has it been added in C9X draft?
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.