Skip to content

Commit 9031cd4

Browse files
authored
update tombstone
1 parent ee6e651 commit 9031cd4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Chapter05/printLength.c

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
// printLength.c
22
// Chapter 5
3-
// <book title>
3+
// Learn C Programming
44
//
55
// Program to print a length in given meters as well as
66
// in feed (converted from meters). Consideration must be
77
// given to values effectively 1.0 feet but which will never
88
// be exactly 1.0 feet -- they'll be more like 1.0000000987 feet,
99
// or 1.0 for any practical purpose.
1010
// We consider 1.0 feet within 4 significant digits.
11+
//
12+
// Compile with:
13+
//
14+
// cc printLength.c -o printLength -Wall -Werror -std=c11
15+
//
1116

1217

1318
#include <stdio.h>
@@ -29,4 +34,4 @@ void printLength( double meters ) {
2934
printf( "Length = %f %s\n\n" ,
3035
feet,
3136
0.99995 < feet && feet < 1.00005 ? "foot" : "feet" );
32-
}
37+
}

0 commit comments

Comments
 (0)