#include int test = 'test'; char testStr[5]; int main() { switch (test) { case 'test': printf("here\n"); break; }; test = ntohl(test); strcpy(testStr, (char*)&test); printf("%s\n", testStr); return 0; }