摘要:
1 #include <io_utils.h> 2 3 typedef enum FileFormat { 4 PNG, JPEG = 10, BMP = 20, UNKNOWN 5 } FileFormat; 6 7 FileFormat GuessFormat(char *file_path) 阅读全文
摘要:
1 #include <io_utils.h> 2 3 #define OP_PRINT_INT 0 4 #define OP_PRINT_DOUBLE 1 5 #define OP_PRINT_STRING 2 6 7 typedef union Operand { 8 int int_opera 阅读全文
摘要:
1 #include <io_utils.h> 2 3 int IsBigEndian() { 4 union { 5 char c[2]; 6 short s; 7 } value = {.s=0x100}; 8 9 return value.c[0] == 1; 10 } 11 12 int I 阅读全文