aboutsummaryrefslogtreecommitdiffstats
path: root/man3/offsetof.3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-05-03 00:48:14 +0200
committerAlejandro Colomar <alx@kernel.org>2023-05-03 00:48:22 +0200
commitfe5dba139dc089eae4061fdc17f087e71f48b198 (patch)
tree54af56b1b0138bde9a21e99372ab68ce4d64564a /man3/offsetof.3
parent5a0d9ed151e6449d978fabdd654cacc17b20a235 (diff)
downloadman-pages-fe5dba139dc089eae4061fdc17f087e71f48b198.tar.gz
man*/, man.ignore.grep: srcfix; warn about blank lines
- Use the dummy character to avoid warnings in examples. - Re-enable the warning. Suggested-by: "G. Branden Robinson" <g.branden.robinson@gmail.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man3/offsetof.3')
-rw-r--r--man3/offsetof.38
1 files changed, 4 insertions, 4 deletions
diff --git a/man3/offsetof.3 b/man3/offsetof.3
index b234e5ce1b..65e0ee4c20 100644
--- a/man3/offsetof.3
+++ b/man3/offsetof.3
@@ -86,7 +86,7 @@ sizeof(struct s)=16
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
-
+\&
int
main(void)
{
@@ -96,14 +96,14 @@ main(void)
double d;
char a[];
};
-
+\&
/* Output is compiler dependent */
-
+\&
printf("offsets: i=%zu; c=%zu; d=%zu a=%zu\en",
offsetof(struct s, i), offsetof(struct s, c),
offsetof(struct s, d), offsetof(struct s, a));
printf("sizeof(struct s)=%zu\en", sizeof(struct s));
-
+\&
exit(EXIT_SUCCESS);
}
.EE