k&r; exercise 1.20 - tabs to spaces