Andrew, > > I have the address of a 64bit unsigned integer in little endian order. > Which macro should I use to put it into a uint64_t variable ? Something like: uint64_t x; memcpy(&x, ptr, sizeof(x)); CPL_LSBPTR64(&x); Even -- http://www.spatialys.com My software is free, but my time generally not.