add struct size

This commit is contained in:
LingZhaoHui 2021-11-28 19:48:07 +08:00
parent c55769e715
commit fb2c3da530
1 changed files with 15 additions and 0 deletions

15
base/size_test.c Normal file
View File

@ -0,0 +1,15 @@
#include <stdio.h>
/**
* quicklist lzf
* */
typedef struct quicklistLZF {
unsigned int sz; /* LZF size in bytes*/
char compressed[];
} quicklistLZF;
int main()
{
printf("size=%d\n", sizeof(quicklistLZF));
return 0;
}