#include #define UINT_TO_SEGMENTS(i) (i>>24 & 0xff),(i>>16 & 0xff),(i>>8 & 0xff),(i & 0xff) #define WRITE_STR(ptr, str, len) for (int i=0; i