UNB/ CS/ David Bremner/ teaching/ old/ cs2023/ C Code examples

The canonical source (and a nice list organized by chapter) for these examples is the book web site

addfrac.c
Sat 11 Sep 2010 05:23:13 PM

airmiles.c
Sat 11 Sep 2010 05:23:13 PM

average.c
Sat 11 Sep 2010 05:23:13 PM

broker.c
Sat 11 Sep 2010 05:23:13 PM

canopen.c
Sat 11 Sep 2010 05:23:13 PM

celsius.c
Sat 11 Sep 2010 05:23:13 PM

checking.c
Sat 11 Sep 2010 05:23:13 PM

countdown.c
Sat 11 Sep 2010 05:23:13 PM

date.c
Sat 11 Sep 2010 05:23:13 PM

datetime.c
Sat 11 Sep 2010 05:23:13 PM

deal.c
Sat 11 Sep 2010 05:23:13 PM

dweight.c
Sat 11 Sep 2010 05:23:13 PM

dweight2.c
Sat 11 Sep 2010 05:23:13 PM

fcopy.c
Sat 11 Sep 2010 05:23:13 PM

guess.c
Sat 11 Sep 2010 05:23:13 PM

guess2.c
Sat 11 Sep 2010 05:23:13 PM

interest.c
Sat 11 Sep 2010 05:23:13 PM

invclear.c
Sat 11 Sep 2010 05:23:13 PM

inventory.c
Sat 11 Sep 2010 05:23:13 PM

inventory2.c
Sat 11 Sep 2010 05:23:13 PM

justify.c
Sat 11 Sep 2010 05:23:13 PM

length.c
Sat 11 Sep 2010 05:23:13 PM

length2.c
Sat 11 Sep 2010 05:23:13 PM

line.c
Sat 11 Sep 2010 05:23:13 PM

line.h
Sat 11 Sep 2010 05:23:13 PM

maxmin.c
Sat 11 Sep 2010 05:23:13 PM

numdigits.c
Sat 11 Sep 2010 05:23:13 PM

planet.c
Sat 11 Sep 2010 05:23:13 PM

poker.c
Sat 11 Sep 2010 05:23:13 PM

prime.c
Sat 11 Sep 2010 05:23:13 PM

pun.c
Sat 11 Sep 2010 05:23:13 PM

pun2.c
Sat 11 Sep 2010 05:23:13 PM

qsort.c
Sat 11 Sep 2010 05:23:13 PM

quadratic.c
Sat 11 Sep 2010 05:23:13 PM

readline.c
Sat 11 Sep 2010 05:23:13 PM

readline.h
Sat 11 Sep 2010 05:23:13 PM

remind.c
Sat 11 Sep 2010 05:23:13 PM

remind2.c
Sat 11 Sep 2010 05:23:13 PM

repdigit.c
Sat 11 Sep 2010 05:23:13 PM

reverse.c
Sat 11 Sep 2010 05:23:13 PM

reverse2.c
Sat 11 Sep 2010 05:23:13 PM

reverse3.c
Sat 11 Sep 2010 05:23:13 PM

square.c
Sat 11 Sep 2010 05:23:13 PM

square2.c
Sat 11 Sep 2010 05:23:13 PM

square3.c
Sat 11 Sep 2010 05:23:13 PM

stack.h
Sat 11 Sep 2010 05:23:13 PM

stack1.c
Sat 11 Sep 2010 05:23:13 PM

stack2.c
Sat 11 Sep 2010 05:23:13 PM

stackADT.c
Sat 11 Sep 2010 05:23:13 PM

stackADT.h
Sat 11 Sep 2010 05:23:13 PM

stackADT2.c
Sat 11 Sep 2010 05:23:13 PM

stackADT2.h
Sat 11 Sep 2010 05:23:13 PM

stackADT3.c
Sat 11 Sep 2010 05:23:13 PM

stackclient.c
Sat 11 Sep 2010 05:23:13 PM

sum.c
Sat 11 Sep 2010 05:23:13 PM

sum2.c
Sat 11 Sep 2010 05:23:13 PM

tabulate.c
Sat 11 Sep 2010 05:23:13 PM

tcasemap.c
Sat 11 Sep 2010 05:23:13 PM

tclassify.c
Sat 11 Sep 2010 05:23:13 PM

tnumconv.c
Sat 11 Sep 2010 05:23:13 PM

tprintf.c
Sat 11 Sep 2010 05:23:13 PM

trand.c
Sat 11 Sep 2010 05:23:13 PM

tsetjmp.c
Sat 11 Sep 2010 05:23:13 PM

tsignal.c
Sat 11 Sep 2010 05:23:13 PM

upc.c
Sat 11 Sep 2010 05:23:13 PM

viewmemory.c
Sat 11 Sep 2010 05:23:13 PM

word.c
Sat 11 Sep 2010 05:23:13 PM

word.h
Sat 11 Sep 2010 05:23:13 PM

xor.c
Sat 11 Sep 2010 05:23:13 PM