Skip to content

Commit b6ff07a

Browse files
committed
Add check-size.c
1 parent 1fc2fa6 commit b6ff07a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

check-size.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include <stdio.h>
2+
int main() {
3+
printf("sizeof(long)= %lu, sizeof(size_t)= %lu, sizeof(long long)= %lu, sizeof(void*)= %lu\n",
4+
sizeof(long),
5+
sizeof(size_t),
6+
sizeof(long long),
7+
sizeof(void*));
8+
return 0;
9+
}

0 commit comments

Comments
 (0)