- 论坛徽章:
- 3
|
根据输入的类型判断??
struct type_size_t {
char *type;
int size;
} type_size[] = {
{ "char", sizeof(char) },
{ "int", sizeof(int) },
{ "long", sizeof(long) },
{ "long long", sizeof(long long) },
{ "short int", sizeof(short int) },
{ "unsigned short int", sizeof(unsigned short int) },
{ NULL, 0 }
}; |
|
|