c++ - 64 bit
- rebel (5/5) Nov 13 2011 Hi,
-
Bernard Helyer
(3/12)
Nov 13 2011
#include
- Nick Hofstetter (8/8) Nov 16 2011 I was looking at this and found a bug in the run time library. Should be...
Hi, int x; // 32 bit How to declace an 64 bit unsigned variable in Digital Mars ? Thanks, Ed
Nov 13 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;
Nov 13 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.
Nov 16 2011