Understood... but I'm still unsure under what conditions charbox[i] wouldn't end up being '\0', since there is an explicit line(not inside a loop or if conditional -- is 'explicit' the correct term for that?) that sets charbox[i] to '\0'.

Aside from interrupting the program, how would that line get skipped?