Input Limitation And Error Checking In C