/* The following assumptions are true on most systems in the world */ #define int8_t signed char #define int16_t short #define int32_t int #define int64_t long long #define uint8_t unsigned char #define uint16_t unsigned short #define uint32_t unsigned int #define uint64_t unsigned long long #define PRId8 "hhd" #define PRId16 "hd" #define PRId32 "ld" #define PRId64 "lld" #define PRIu8 "hhu" #define PRIu16 "hu" #define PRIu32 "lu" #define PRIu64 "llu" #define PRIx8 "hhx" #define PRIx16 "hx" #define PRIx32 "lx" #define PRIx64 "llx"