mirror of https://github.com/mkerrisk/man-pages
offsetof.3: ffix
This commit is contained in:
parent
01f1f222a5
commit
624c0456a7
|
@ -61,14 +61,16 @@ C89, C99, POSIX.1-2001.
|
|||
On a Linux/i386 system, when compiled using the default
|
||||
.BR gcc (1)
|
||||
options, the program below produces the following output:
|
||||
.in +4n
|
||||
.nf
|
||||
|
||||
$ ./a.out
|
||||
offsets: i=0; c=4; d=8 a=16
|
||||
sizeof(struct s)=16
|
||||
$ ./a.out
|
||||
offsets: i=0; c=4; d=8 a=16
|
||||
sizeof(struct s)=16
|
||||
|
||||
.fi
|
||||
.nf
|
||||
.nf
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
Loading…
Reference in New Issue