[c] how to check if the input is a number or not in C?