Thread overview
64 bit
Nov 13, 2011
rebel
Nov 14, 2011
Bernard Helyer
Nov 16, 2011
Nick Hofstetter
November 13, 2011
Hi,

int x;   // 32 bit

How to declace an 64 bit unsigned variable in Digital Mars ?

Thanks,

Ed


November 14, 2011
On Sun, 13 Nov 2011 18:20:41 +0000, rebel wrote:

> Hi,
> 
> int x;   // 32 bit
> 
> How to declace an 64 bit unsigned variable in Digital Mars ?
> 
> Thanks,
> 
> Ed

    #include <stdint.h>
    uint64_t x;
November 16, 2011
I was looking at this and found a bug in the run time library. Should be able to create a long long using atoll, but atoll calls strtoll with a base of 0 and not 10.

long long atoll(const char *p)
{
    return strtoll(p, (char **)NULL, 0);
}

So if the string has leading zeros it is assumed to be an octal number.