when str ends with '\n', still need length checking (lim - 1)
[0-9]* means a number followed by any character
add Exercise 1-17
modify Makefile to compile 17.c