Source directory can be extracted from ftp.uu.net:/published/oreilly/nutshell/practical_c.
I strongly recomended you get the book to put these examples into context. Martin
Name Description
01_1.c P.02 - Usual first program.
01_2.c P.06 - Repeat of 01_1.c
02_1.c P.11 - Repeat of 01_1.c with COMMENTS!
03_1.c P.24 - Compute the value of (1+2)*4
03_2.c P.27 - Store an interger into a variable.
03_3.c P.29 - Compute a value and print it.
03_4.c P.33 - Reverse three characters.
04_1.c P.36 - Compute the total average of five numbers
04_2.c P.38 - Assign and print a string variable.
04_3.c P.39 - Concatinate two strings.
04_4.c P.41 - Read line from keyboard and print length
04_5.c P.41 - Mash 4_3 and 4_4 together.
04_6.c P.42 - Build on 4_5.
04_7.c P.45 - sscanf example.
05_1.c P.62 - Generate the Fibonacci sequence.
05_2.c P.64 - Add a sequence of numbers.
05_3.c P.65 - Building on 5_2.
06_1.c P.75 - Four function calculator. First attempt.
06_2.c P.79 - Four function calculator - More facilities
06_3.c P.84 - Number guessing game.
07_1.c P.88 - Use 'while' to add 5 numbers.
07_2.c P.88 - Use 'for' to add 5 numbers.
07_3.c P.92 - Calculator using the 'switch' statement.
08_1.c P.103 - Temp and permanent variables.
08_2.c P.106 - Compute the area of three triangles.
08_3.c P.111 - Solve all the worlds problems!!!!!
09_1.c P.116 - Program without #define
09_2.c P.116 - Same program with #define
09_3.c P.118 - Preprocessor trap!
09_4.c P.125 - Problems with macros.
09_5.c P.126 - Macro issues continued.
10_1.c P.142 - Bit Operations example.
11_1.c P.150 - Union example.
12_1.c P.162 - Simple use of pointers.
12_2.c P.165 - Passing a pointer to a function.
12_3.c P.168 - Print the elements and addresses of an a>
12_4.c P.169 - Count the number of elements that are no>
12_5.c P.169 - Prog 12.-3 using a pointer to an array.
12_6.c P.170 - Passing an array to a function.
12_7.c P.172 - Simple string processing.
12_8.c P.177 - The 'print' program.
13_1.c P.183 - Count the number of characters in a file.
13_2.c P.195 - Copy a file.
14_01.c P.202 - Database lookup program.
14_02.c P.204 - Revision of 14_01.
14_03.c P.205 - More improvements.
14_04.c P.206 - and a bit more.
14_05.c P.207 - Final revision.
14_06.c P.213 - Example of a program with a bug.
14_07.c P.217 - Binary search.
14_08.c P.224 - Corrected version of 14_07.
14_09.c P.226 - Debuging example.
14_10.c P.227 - Runtime error example.
14_11.c P.228 - 14_10 fixed.
14_12.c P.229 - Initialize a matrix.
14_13.c P.230 - 14_13 improved.
14_14.c P.230 - Loop nesting.
14_15.c P.232 - 14_14 speeded up
14_16.c P.232 - More improvements.
14_17.c P.233 - and more.
14_18.c P.233 - and more.....
14_19.c P.234 - Final cut.
15_1.c P.245 - Calculate the accuracy of floating point>
16_1.c P.253 - malloc
16_2.c P.258 - search a list.
16_3.c P.271 - print a list of words in ASCII order.
17_1.c P.287 - Infinite arrarys.
17_2.c P.296 - Histogram.
font.h
fonts.c
gen.h
macro.h
macros.c
makefile.tcc
makefile.unix
standard.mac
symbol.c
test.csh
tlint.c
troff.test