1 int isLittleEndian(void) 2 { 3 return *(char *)(int []){1} == 1; 4 }
关于Compound Literals,https://gcc.gnu.org/onlinedocs/gcc-3.3.1/gcc/Compound-Literals.html
时间: 2025-01-10 09:53:29
1 int isLittleEndian(void) 2 { 3 return *(char *)(int []){1} == 1; 4 }
关于Compound Literals,https://gcc.gnu.org/onlinedocs/gcc-3.3.1/gcc/Compound-Literals.html