2008年9月16日 星期二

linux 32bit platform memo

sizeof(char) = 1
sizeof(short) = 2
sizeof(int) = 4
sizeof(long) = 4
sizeof(long long) = 8

sizeof(size_t) = 4
sizeof(off_t) = 4
sizeof(void *) = 4