Skip to content

Commit b4cc9eb

Browse files
author
Ward van Wanrooij
committed
More fixes by RossBencina
1 parent a3ed1ac commit b4cc9eb

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

example/example9-1.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ main(){
88
int a, b, c;
99
}s_tr;
1010

11-
distance = offsetof(s_tr, c);
11+
distance = offsetof(struct x, c);
1212
printf("Offset of x.c is %lu bytes\n",
1313
(unsigned long)distance);
1414

1515
exit(EXIT_SUCCESS);
16-
}
16+
}

example/example9-5.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
int f(int, ... );
22

3-
int f(int, ... ) {
4-
.
5-
.
6-
.
3+
int f(int a, ... ) {
4+
/* ... */
75
}
86

97
int g() {
108
f(1,2,3);
11-
}
9+
}

thecbook.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888

8989
\begin{document}
9090
\frontmatter
91-
\title{The C Book\thanks{Conversion to TeX and editing by Ward van Wanrooij.\newline This version contains changes up to 2020-07-21.\newline The latest version is available at https://github.com/wardvanwanrooij/thecbook}}
91+
\title{The C Book\thanks{Conversion to TeX and editing by Ward van Wanrooij.\newline This version contains changes up to 2023-06-22.\newline The latest version is available at https://github.com/wardvanwanrooij/thecbook}}
9292
\author{Mike Banahan \and Declan Brady \and Mark Doran}
9393
\date{January 1991}
9494
\maketitle

0 commit comments

Comments
 (0)