X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=original%2Fman3%2Foffsetof.3;h=83f314bf8d36dd9224cc3f66ec0c40665c61b7cb;hb=361fd72f831aabd8a0aa6fe7bc4ef66ef4f89a1b;hp=4987b6838475a02ffa25bc27e0284a80603d7a6e;hpb=73cdbcd8b7948c6010c7756d89d5c0445ecba990;p=linuxjm%2FLDP_man-pages.git diff --git a/original/man3/offsetof.3 b/original/man3/offsetof.3 index 4987b683..83f314bf 100644 --- a/original/man3/offsetof.3 +++ b/original/man3/offsetof.3 @@ -25,7 +25,7 @@ .\" References: .\" /usr/lib/gcc/i486-linux-gnu/4.1.1/include/stddef.h .\" glibc-doc -.TH OFFSETOF 3 2008-07-12 "GNU" "Linux Programmer's Manual" +.TH OFFSETOF 3 2014-04-06 "GNU" "Linux Programmer's Manual" .SH NAME offsetof \- offset of a structure member .SH SYNOPSIS @@ -92,13 +92,19 @@ main(void) /* Output is compiler dependent */ - printf("offsets: i=%ld; c=%ld; d=%ld a=%ld\\n", - (long) offsetof(struct s, i), - (long) offsetof(struct s, c), - (long) offsetof(struct s, d), - (long) offsetof(struct s, a)); - printf("sizeof(struct s)=%ld\\n", (long) sizeof(struct s)); + printf("offsets: i=%zd; c=%zd; d=%zd a=%zd\\n", + offsetof(struct s, i), offsetof(struct s, c), + offsetof(struct s, d), offsetof(struct s, a)); + printf("sizeof(struct s)=%zd\\n", sizeof(struct s)); exit(EXIT_SUCCESS); } .fi +.SH COLOPHON +This page is part of release 3.65 of the Linux +.I man-pages +project. +A description of the project, +and information about reporting bugs, +can be found at +\%http://www.kernel.org/doc/man\-pages/.