├── .gitignore ├── LICENSE ├── README.md ├── ch01 ├── 1-10.c ├── 1-12.c ├── 1-13.c ├── 1-16.c ├── 1-17.c ├── 1-18.c ├── 1-19.c ├── 1-20.c ├── 1-21.c ├── 1-23.c ├── 1-3.c ├── 1-4.c ├── 1-5.c ├── 1-8.c └── 1-9.c ├── ch02 ├── 2-1.c ├── 2-10.c ├── 2-3.c ├── 2-4.c ├── 2-5.c ├── 2-6.c ├── 2-7.c ├── 2-8.c └── 2-9.c ├── ch03 ├── 3-2.c ├── 3-3.c ├── 3-4.c ├── 3-5.c └── 3-6.c ├── ch04 ├── 4-1.c ├── 4-12-itoa │ ├── itoa.c │ ├── itoa.h │ ├── itoa.test.c │ └── makefile ├── 4-13-reverse │ ├── makefile │ ├── reverse.c │ ├── reverse.h │ └── reverse.test.c ├── 4-2.c ├── 4-8-getch │ ├── getch.c │ ├── getch.h │ ├── getch.test.c │ └── makefile └── calculator │ ├── getline2.c │ ├── getline2.h │ ├── getop.c │ ├── getop.h │ ├── isnumfmt.c │ ├── isnumfmt.h │ ├── main.c │ ├── makefile │ ├── stack.c │ ├── stack.h │ └── tests │ ├── getline2.input.txt │ ├── getline2.test.c │ ├── getop.test.c │ ├── isnumfmt.test.c │ └── stack.test.c ├── ch05 ├── 5-1-getint │ ├── getch.c │ ├── getch.h │ ├── getint.c │ ├── getint.h │ ├── getint.input.txt │ ├── getint.test.c │ └── makefile ├── 5-10-calculator │ ├── calculate.c │ ├── calculate.h │ ├── isnumfmt.c │ ├── isnumfmt.h │ ├── makefile │ ├── stack.c │ ├── stack.h │ └── tests │ │ ├── calculate.test.c │ │ ├── isnumfmt.test.c │ │ └── stack.test.c ├── 5-11-detab │ ├── detab.c │ ├── detab.h │ ├── detab.input.txt │ ├── entab.c │ ├── entab.h │ ├── entab.input.txt │ ├── main.detab.c │ ├── main.entab.c │ ├── makefile │ ├── settab.c │ ├── settab.h │ ├── tabpos.c │ └── tabpos.h ├── 5-12-detab │ ├── entab.c │ ├── entab.h │ ├── entab.input.txt │ ├── main.c │ ├── makefile │ ├── settab.c │ ├── settab.h │ ├── tabpos.c │ └── tabpos.h ├── 5-13-tail │ ├── input.txt │ ├── makefile │ └── tail.c ├── 5-14-qsort │ ├── cmp.c │ ├── cmp.h │ ├── cmp.test.c │ ├── getlines.c │ ├── getlines.h │ ├── getlines.input.txt │ ├── getlines.test.c │ ├── main.c │ ├── main.input.txt │ ├── makefile │ ├── qsort2.c │ ├── qsort2.h │ ├── qsort2.test.c │ ├── swap.c │ ├── swap.h │ └── swap.test.c ├── 5-18-dcl │ ├── gettoken.c │ ├── gettoken.h │ ├── gettoken.input.txt │ ├── gettoken.test.c │ ├── main.c │ ├── main.input.txt │ ├── makefile │ ├── parse.c │ ├── parse.h │ └── sdt.md ├── 5-2-getfloat │ ├── getfloat.c │ ├── getfloat.h │ ├── getfloat.input.txt │ ├── getfloat.test.c │ └── makefile ├── 5-3-strcat │ ├── makefile │ ├── strcat.c │ ├── strcat.h │ └── strcat.test.c ├── 5-4-strend │ ├── makefile │ ├── strend.c │ ├── strend.h │ └── strend.test.c ├── 5-7-readlines │ ├── alloc.c │ ├── alloc.h │ ├── main.c │ ├── makefile │ ├── qsort.c │ ├── qsort.h │ ├── qsort.test.c │ ├── readlines.c │ ├── readlines.h │ ├── readlines.input.txt │ └── readlines.test.c └── 5-8-monthday │ ├── makefile │ ├── monthday.c │ ├── monthday.h │ └── monthday.test.c ├── ch06 └── 6-5-lookup │ ├── lookup.c │ ├── lookup.h │ ├── lookup.test.c │ └── makefile ├── ch07 ├── 7-3-minprintf │ ├── makefile │ └── minprintf.c └── 7-6-diff │ ├── a.txt │ ├── b.txt │ ├── diff.c │ └── makefile └── key-note ├── init-arr.c ├── init-global.c ├── key-note.md └── scope ├── main.c ├── scope.c └── scope.h /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/README.md -------------------------------------------------------------------------------- /ch01/1-10.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch01/1-10.c -------------------------------------------------------------------------------- /ch01/1-12.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch01/1-12.c -------------------------------------------------------------------------------- /ch01/1-13.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch01/1-13.c -------------------------------------------------------------------------------- /ch01/1-16.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch01/1-16.c -------------------------------------------------------------------------------- /ch01/1-17.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch01/1-17.c -------------------------------------------------------------------------------- /ch01/1-18.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch01/1-18.c -------------------------------------------------------------------------------- /ch01/1-19.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch01/1-19.c -------------------------------------------------------------------------------- /ch01/1-20.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch01/1-20.c -------------------------------------------------------------------------------- /ch01/1-21.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch01/1-21.c -------------------------------------------------------------------------------- /ch01/1-23.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch01/1-23.c -------------------------------------------------------------------------------- /ch01/1-3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch01/1-3.c -------------------------------------------------------------------------------- /ch01/1-4.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch01/1-4.c -------------------------------------------------------------------------------- /ch01/1-5.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch01/1-5.c -------------------------------------------------------------------------------- /ch01/1-8.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch01/1-8.c -------------------------------------------------------------------------------- /ch01/1-9.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch01/1-9.c -------------------------------------------------------------------------------- /ch02/2-1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch02/2-1.c -------------------------------------------------------------------------------- /ch02/2-10.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch02/2-10.c -------------------------------------------------------------------------------- /ch02/2-3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch02/2-3.c -------------------------------------------------------------------------------- /ch02/2-4.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch02/2-4.c -------------------------------------------------------------------------------- /ch02/2-5.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch02/2-5.c -------------------------------------------------------------------------------- /ch02/2-6.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch02/2-6.c -------------------------------------------------------------------------------- /ch02/2-7.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch02/2-7.c -------------------------------------------------------------------------------- /ch02/2-8.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch02/2-8.c -------------------------------------------------------------------------------- /ch02/2-9.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch02/2-9.c -------------------------------------------------------------------------------- /ch03/3-2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch03/3-2.c -------------------------------------------------------------------------------- /ch03/3-3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch03/3-3.c -------------------------------------------------------------------------------- /ch03/3-4.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch03/3-4.c -------------------------------------------------------------------------------- /ch03/3-5.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch03/3-5.c -------------------------------------------------------------------------------- /ch03/3-6.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch03/3-6.c -------------------------------------------------------------------------------- /ch04/4-1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/4-1.c -------------------------------------------------------------------------------- /ch04/4-12-itoa/itoa.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/4-12-itoa/itoa.c -------------------------------------------------------------------------------- /ch04/4-12-itoa/itoa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/4-12-itoa/itoa.h -------------------------------------------------------------------------------- /ch04/4-12-itoa/itoa.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/4-12-itoa/itoa.test.c -------------------------------------------------------------------------------- /ch04/4-12-itoa/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/4-12-itoa/makefile -------------------------------------------------------------------------------- /ch04/4-13-reverse/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/4-13-reverse/makefile -------------------------------------------------------------------------------- /ch04/4-13-reverse/reverse.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/4-13-reverse/reverse.c -------------------------------------------------------------------------------- /ch04/4-13-reverse/reverse.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/4-13-reverse/reverse.h -------------------------------------------------------------------------------- /ch04/4-13-reverse/reverse.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/4-13-reverse/reverse.test.c -------------------------------------------------------------------------------- /ch04/4-2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/4-2.c -------------------------------------------------------------------------------- /ch04/4-8-getch/getch.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/4-8-getch/getch.c -------------------------------------------------------------------------------- /ch04/4-8-getch/getch.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/4-8-getch/getch.h -------------------------------------------------------------------------------- /ch04/4-8-getch/getch.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/4-8-getch/getch.test.c -------------------------------------------------------------------------------- /ch04/4-8-getch/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/4-8-getch/makefile -------------------------------------------------------------------------------- /ch04/calculator/getline2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/calculator/getline2.c -------------------------------------------------------------------------------- /ch04/calculator/getline2.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/calculator/getline2.h -------------------------------------------------------------------------------- /ch04/calculator/getop.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/calculator/getop.c -------------------------------------------------------------------------------- /ch04/calculator/getop.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/calculator/getop.h -------------------------------------------------------------------------------- /ch04/calculator/isnumfmt.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/calculator/isnumfmt.c -------------------------------------------------------------------------------- /ch04/calculator/isnumfmt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/calculator/isnumfmt.h -------------------------------------------------------------------------------- /ch04/calculator/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/calculator/main.c -------------------------------------------------------------------------------- /ch04/calculator/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/calculator/makefile -------------------------------------------------------------------------------- /ch04/calculator/stack.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/calculator/stack.c -------------------------------------------------------------------------------- /ch04/calculator/stack.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/calculator/stack.h -------------------------------------------------------------------------------- /ch04/calculator/tests/getline2.input.txt: -------------------------------------------------------------------------------- 1 | line1 2 | 3 | line3 -------------------------------------------------------------------------------- /ch04/calculator/tests/getline2.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/calculator/tests/getline2.test.c -------------------------------------------------------------------------------- /ch04/calculator/tests/getop.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/calculator/tests/getop.test.c -------------------------------------------------------------------------------- /ch04/calculator/tests/isnumfmt.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/calculator/tests/isnumfmt.test.c -------------------------------------------------------------------------------- /ch04/calculator/tests/stack.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch04/calculator/tests/stack.test.c -------------------------------------------------------------------------------- /ch05/5-1-getint/getch.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-1-getint/getch.c -------------------------------------------------------------------------------- /ch05/5-1-getint/getch.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-1-getint/getch.h -------------------------------------------------------------------------------- /ch05/5-1-getint/getint.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-1-getint/getint.c -------------------------------------------------------------------------------- /ch05/5-1-getint/getint.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-1-getint/getint.h -------------------------------------------------------------------------------- /ch05/5-1-getint/getint.input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-1-getint/getint.input.txt -------------------------------------------------------------------------------- /ch05/5-1-getint/getint.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-1-getint/getint.test.c -------------------------------------------------------------------------------- /ch05/5-1-getint/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-1-getint/makefile -------------------------------------------------------------------------------- /ch05/5-10-calculator/calculate.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-10-calculator/calculate.c -------------------------------------------------------------------------------- /ch05/5-10-calculator/calculate.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-10-calculator/calculate.h -------------------------------------------------------------------------------- /ch05/5-10-calculator/isnumfmt.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-10-calculator/isnumfmt.c -------------------------------------------------------------------------------- /ch05/5-10-calculator/isnumfmt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-10-calculator/isnumfmt.h -------------------------------------------------------------------------------- /ch05/5-10-calculator/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-10-calculator/makefile -------------------------------------------------------------------------------- /ch05/5-10-calculator/stack.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-10-calculator/stack.c -------------------------------------------------------------------------------- /ch05/5-10-calculator/stack.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-10-calculator/stack.h -------------------------------------------------------------------------------- /ch05/5-10-calculator/tests/calculate.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-10-calculator/tests/calculate.test.c -------------------------------------------------------------------------------- /ch05/5-10-calculator/tests/isnumfmt.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-10-calculator/tests/isnumfmt.test.c -------------------------------------------------------------------------------- /ch05/5-10-calculator/tests/stack.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-10-calculator/tests/stack.test.c -------------------------------------------------------------------------------- /ch05/5-11-detab/detab.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-11-detab/detab.c -------------------------------------------------------------------------------- /ch05/5-11-detab/detab.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-11-detab/detab.h -------------------------------------------------------------------------------- /ch05/5-11-detab/detab.input.txt: -------------------------------------------------------------------------------- 1 | a b c d e 2 | -------------------------------------------------------------------------------- /ch05/5-11-detab/entab.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-11-detab/entab.c -------------------------------------------------------------------------------- /ch05/5-11-detab/entab.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-11-detab/entab.h -------------------------------------------------------------------------------- /ch05/5-11-detab/entab.input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-11-detab/entab.input.txt -------------------------------------------------------------------------------- /ch05/5-11-detab/main.detab.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-11-detab/main.detab.c -------------------------------------------------------------------------------- /ch05/5-11-detab/main.entab.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-11-detab/main.entab.c -------------------------------------------------------------------------------- /ch05/5-11-detab/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-11-detab/makefile -------------------------------------------------------------------------------- /ch05/5-11-detab/settab.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-11-detab/settab.c -------------------------------------------------------------------------------- /ch05/5-11-detab/settab.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-11-detab/settab.h -------------------------------------------------------------------------------- /ch05/5-11-detab/tabpos.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-11-detab/tabpos.c -------------------------------------------------------------------------------- /ch05/5-11-detab/tabpos.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-11-detab/tabpos.h -------------------------------------------------------------------------------- /ch05/5-12-detab/entab.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-12-detab/entab.c -------------------------------------------------------------------------------- /ch05/5-12-detab/entab.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-12-detab/entab.h -------------------------------------------------------------------------------- /ch05/5-12-detab/entab.input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-12-detab/entab.input.txt -------------------------------------------------------------------------------- /ch05/5-12-detab/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-12-detab/main.c -------------------------------------------------------------------------------- /ch05/5-12-detab/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-12-detab/makefile -------------------------------------------------------------------------------- /ch05/5-12-detab/settab.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-12-detab/settab.c -------------------------------------------------------------------------------- /ch05/5-12-detab/settab.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-12-detab/settab.h -------------------------------------------------------------------------------- /ch05/5-12-detab/tabpos.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-12-detab/tabpos.c -------------------------------------------------------------------------------- /ch05/5-12-detab/tabpos.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-12-detab/tabpos.h -------------------------------------------------------------------------------- /ch05/5-13-tail/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-13-tail/input.txt -------------------------------------------------------------------------------- /ch05/5-13-tail/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-13-tail/makefile -------------------------------------------------------------------------------- /ch05/5-13-tail/tail.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-13-tail/tail.c -------------------------------------------------------------------------------- /ch05/5-14-qsort/cmp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-14-qsort/cmp.c -------------------------------------------------------------------------------- /ch05/5-14-qsort/cmp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-14-qsort/cmp.h -------------------------------------------------------------------------------- /ch05/5-14-qsort/cmp.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-14-qsort/cmp.test.c -------------------------------------------------------------------------------- /ch05/5-14-qsort/getlines.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-14-qsort/getlines.c -------------------------------------------------------------------------------- /ch05/5-14-qsort/getlines.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-14-qsort/getlines.h -------------------------------------------------------------------------------- /ch05/5-14-qsort/getlines.input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-14-qsort/getlines.input.txt -------------------------------------------------------------------------------- /ch05/5-14-qsort/getlines.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-14-qsort/getlines.test.c -------------------------------------------------------------------------------- /ch05/5-14-qsort/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-14-qsort/main.c -------------------------------------------------------------------------------- /ch05/5-14-qsort/main.input.txt: -------------------------------------------------------------------------------- 1 | abcd 2 | abc 3 | ABC 4 | 3 5 | 12 6 | -------------------------------------------------------------------------------- /ch05/5-14-qsort/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-14-qsort/makefile -------------------------------------------------------------------------------- /ch05/5-14-qsort/qsort2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-14-qsort/qsort2.c -------------------------------------------------------------------------------- /ch05/5-14-qsort/qsort2.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-14-qsort/qsort2.h -------------------------------------------------------------------------------- /ch05/5-14-qsort/qsort2.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-14-qsort/qsort2.test.c -------------------------------------------------------------------------------- /ch05/5-14-qsort/swap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-14-qsort/swap.c -------------------------------------------------------------------------------- /ch05/5-14-qsort/swap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-14-qsort/swap.h -------------------------------------------------------------------------------- /ch05/5-14-qsort/swap.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-14-qsort/swap.test.c -------------------------------------------------------------------------------- /ch05/5-18-dcl/gettoken.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-18-dcl/gettoken.c -------------------------------------------------------------------------------- /ch05/5-18-dcl/gettoken.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-18-dcl/gettoken.h -------------------------------------------------------------------------------- /ch05/5-18-dcl/gettoken.input.txt: -------------------------------------------------------------------------------- 1 | const char *( *foo( void *p, int param))[100] -------------------------------------------------------------------------------- /ch05/5-18-dcl/gettoken.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-18-dcl/gettoken.test.c -------------------------------------------------------------------------------- /ch05/5-18-dcl/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-18-dcl/main.c -------------------------------------------------------------------------------- /ch05/5-18-dcl/main.input.txt: -------------------------------------------------------------------------------- 1 | char **(*foo())[100] -------------------------------------------------------------------------------- /ch05/5-18-dcl/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-18-dcl/makefile -------------------------------------------------------------------------------- /ch05/5-18-dcl/parse.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-18-dcl/parse.c -------------------------------------------------------------------------------- /ch05/5-18-dcl/parse.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-18-dcl/parse.h -------------------------------------------------------------------------------- /ch05/5-18-dcl/sdt.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-18-dcl/sdt.md -------------------------------------------------------------------------------- /ch05/5-2-getfloat/getfloat.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-2-getfloat/getfloat.c -------------------------------------------------------------------------------- /ch05/5-2-getfloat/getfloat.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-2-getfloat/getfloat.h -------------------------------------------------------------------------------- /ch05/5-2-getfloat/getfloat.input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-2-getfloat/getfloat.input.txt -------------------------------------------------------------------------------- /ch05/5-2-getfloat/getfloat.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-2-getfloat/getfloat.test.c -------------------------------------------------------------------------------- /ch05/5-2-getfloat/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-2-getfloat/makefile -------------------------------------------------------------------------------- /ch05/5-3-strcat/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-3-strcat/makefile -------------------------------------------------------------------------------- /ch05/5-3-strcat/strcat.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-3-strcat/strcat.c -------------------------------------------------------------------------------- /ch05/5-3-strcat/strcat.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-3-strcat/strcat.h -------------------------------------------------------------------------------- /ch05/5-3-strcat/strcat.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-3-strcat/strcat.test.c -------------------------------------------------------------------------------- /ch05/5-4-strend/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-4-strend/makefile -------------------------------------------------------------------------------- /ch05/5-4-strend/strend.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-4-strend/strend.c -------------------------------------------------------------------------------- /ch05/5-4-strend/strend.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-4-strend/strend.h -------------------------------------------------------------------------------- /ch05/5-4-strend/strend.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-4-strend/strend.test.c -------------------------------------------------------------------------------- /ch05/5-7-readlines/alloc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-7-readlines/alloc.c -------------------------------------------------------------------------------- /ch05/5-7-readlines/alloc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-7-readlines/alloc.h -------------------------------------------------------------------------------- /ch05/5-7-readlines/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-7-readlines/main.c -------------------------------------------------------------------------------- /ch05/5-7-readlines/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-7-readlines/makefile -------------------------------------------------------------------------------- /ch05/5-7-readlines/qsort.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-7-readlines/qsort.c -------------------------------------------------------------------------------- /ch05/5-7-readlines/qsort.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-7-readlines/qsort.h -------------------------------------------------------------------------------- /ch05/5-7-readlines/qsort.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-7-readlines/qsort.test.c -------------------------------------------------------------------------------- /ch05/5-7-readlines/readlines.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-7-readlines/readlines.c -------------------------------------------------------------------------------- /ch05/5-7-readlines/readlines.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-7-readlines/readlines.h -------------------------------------------------------------------------------- /ch05/5-7-readlines/readlines.input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-7-readlines/readlines.input.txt -------------------------------------------------------------------------------- /ch05/5-7-readlines/readlines.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-7-readlines/readlines.test.c -------------------------------------------------------------------------------- /ch05/5-8-monthday/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-8-monthday/makefile -------------------------------------------------------------------------------- /ch05/5-8-monthday/monthday.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-8-monthday/monthday.c -------------------------------------------------------------------------------- /ch05/5-8-monthday/monthday.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-8-monthday/monthday.h -------------------------------------------------------------------------------- /ch05/5-8-monthday/monthday.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch05/5-8-monthday/monthday.test.c -------------------------------------------------------------------------------- /ch06/6-5-lookup/lookup.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch06/6-5-lookup/lookup.c -------------------------------------------------------------------------------- /ch06/6-5-lookup/lookup.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch06/6-5-lookup/lookup.h -------------------------------------------------------------------------------- /ch06/6-5-lookup/lookup.test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch06/6-5-lookup/lookup.test.c -------------------------------------------------------------------------------- /ch06/6-5-lookup/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch06/6-5-lookup/makefile -------------------------------------------------------------------------------- /ch07/7-3-minprintf/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch07/7-3-minprintf/makefile -------------------------------------------------------------------------------- /ch07/7-3-minprintf/minprintf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch07/7-3-minprintf/minprintf.c -------------------------------------------------------------------------------- /ch07/7-6-diff/a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch07/7-6-diff/a.txt -------------------------------------------------------------------------------- /ch07/7-6-diff/b.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch07/7-6-diff/b.txt -------------------------------------------------------------------------------- /ch07/7-6-diff/diff.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch07/7-6-diff/diff.c -------------------------------------------------------------------------------- /ch07/7-6-diff/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/ch07/7-6-diff/makefile -------------------------------------------------------------------------------- /key-note/init-arr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/key-note/init-arr.c -------------------------------------------------------------------------------- /key-note/init-global.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/key-note/init-global.c -------------------------------------------------------------------------------- /key-note/key-note.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/key-note/key-note.md -------------------------------------------------------------------------------- /key-note/scope/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/key-note/scope/main.c -------------------------------------------------------------------------------- /key-note/scope/scope.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/key-note/scope/scope.c -------------------------------------------------------------------------------- /key-note/scope/scope.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fool2fish/the-c-programming-language-exercise-answers/HEAD/key-note/scope/scope.h --------------------------------------------------------------------------------