summaryrefslogtreecommitdiff
path: root/extras/sizeof_struct_stat.c
blob: 67b6b9cc7502919a856433273355cec915e7f188 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <sys/stat.h>

#include <stddef.h>
#include <stdio.h>

int
main(void)
{
	printf("Size of stat struct:\t%zu bytes\nOffset of st_size:\t%zu\n", sizeof(struct stat),
	       offsetof(struct stat, st_size));
	return 0;
}