Linux – Is u_int64_t available on 32-bit machine


I want to use a u_int64_t variable as search key,

is u_int64_t available on 32-bit machine?

if not, I have to divide this variable into two varibles? then as a search key, it is a bit more troublesome

are there any workaround for this?

Best Solution

An unsigned 64-bit integral type is not guaranteed by the C standard, but is typically available on 32-bit machines, and on virtually all machines running Linux. When present, the type will be named uint64_t (note one less underscore) and declared in the <stdint.h> header file.