Re: How to determine if running on a 32 or 64 bits kernel ?



laurent.charmet@xxxxxxxxx wrote:
I'm looking for an API or whatever to determine if kernel/os is 32 or
64 bits. It must be dynamic, because my binary can be compiled on a
machine and run on another.

If you run a 32-bit app on a 64-bit system, it was still compiled as a 32-bit app.

Why do you want to know the word size of the kernel?

Chris
.