We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80faaaf commit 5195fcfCopy full SHA for 5195fcf
Chapter17/heading.c
@@ -1,13 +1,16 @@
1
// heading.c
2
// Chapter 18
3
-// <book title>
+// Learn C Programming
4
//
5
// Demonstrate how to use a static variable in
6
// a function to print the next page number each time the
7
// function is called.
8
9
-// compile with: cc heading.c -o heading -Wall -Werror -std=c11
+// compile with:
10
11
+// cc heading.c -o heading -Wall -Werror -std=c11
12
+//
13
+
14
#include <stdio.h>
15
16
void printHeading( const char* aHeading );
@@ -27,3 +30,5 @@ void printHeading( const char* aHeading ) {
27
30
printf( "%s \t Page %d\n" , aHeading , pageNo);
28
31
pageNo++;
29
32
}
33
34
+ // eof
0 commit comments