When you get to malloc(), you might also take a stab at
the debugger after that. It can be very helpful while learning and 'playing' with dynamic memory allocation.
__________________
My
Journal
Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.