As I explained in many questions, I'm trying to move a software from a 32-bit system to a 64-bit system. I had some problem with malloc() function, but now I solved it by correcting a parameter.
In that part of my code, if I run on a 32-bit system, I can use:
(int**) malloc (const * sizeof(int))
But, on a 64-bit system, I have to use:
(int**) malloc (const * sizeof(int64_t))
I'd like to manage these crossroads with an if() condition, so I need a boolean isIt64system() function that behaves this way:
if(isIt64system()) then [64-bit code]
else [32-bit code]
Does this function exist in C++? Is there any function that tells me if software's running on a 32-bit system or 64-bit system?