There are no files to copy over for this week. Instead, lets revisit the mystery program from last week and try it in ddd again:
cd cs31/weeklylabs/week07/ ddd ./mystery (gdb) break main (gdb) run
(gdb) x/a address # /a: "examine memory contents as an adress" (gdb) x/s address # /s: "examine memory contents as a string" (gdb) x/wd address # /wd: "examine memory contents as a 4byte decimal"
Next, let's look at the man page for strcmp and for scanf to see what they are telling us about these functions.
% man scanf % man 3 scanf # or explictly specify the manual section: # (C library function scanf is in section 3 of the manual) % man strcmp