#ifndef PACK_H #define PACK_H #include /* turns a big endian int into an int */ int frombigendian(const unsigned char in[4]); /* writes an int into a big endian int in given buffer */ void tobigendian(const int in, unsigned char out[4]); /* reads a teeworlds packed int from given buffer */ /* the given pointer is incremented */ int readint(char **cp); /* writes given int to teeworlds packed */ /* the given pointer is incremented */ void writeint(int in, char **cp); #endif // PACK_H