Outline for April 17, 2002
Handouts: Command Line Arguments, Pointers
Reading: Johnsonbaugh & Kalin pp. 245-265, 305-329
-
Greetings and felicitations!
-
Ke Zhang will be available for grading from 7--9 PM tonight
-
fileio.c
-
like program 5 from first handout, but driven by files not standard input
-
show technique for developing this (program becomes function, add file I/O driver)
-
go through file manipulation functions
-
echo.c
-
go through command line arguments
-
describe argc, argv[argc]
-
explain argv[0]
-
echon.c
-
go through command line options
-
do char-by-char check for -n
-
show strcmp, strncmp
-
ptr.c