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 ADT

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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