#ifndef UTILLIB_H #define UTILLIB_H #include #ifdef BIGENDIAN /* convert the bytes of a 16-bit integer to little endian */ #define BSWAP16(c) (((c & 0xff) << 8) | ((c >> 8) & 0xff)) /* convert the bytes of a 32-bit integer to little endian */ #define BSWAP32(c) ((c>>24)&0xff)|((c>>8)&0xff00)|((c<<8)&0xff0000)|(c<<24) #else #define BSWAP16(c) c #define BSWAP32(c) c #endif int regex(char *s, char *reg_expr, int nmatch, regmatch_t pmatch[]); char* new_string(char *s); #endif .