Simple. There's no way. Actually you don't need such feature for your purpose(just to validate input!).
Read a line with fgets() and parse with strtol.
man page fgets section 3
man page strtol...
Type: Posts; User: Bayint Naung
Simple. There's no way. Actually you don't need such feature for your purpose(just to validate input!).
Read a line with fgets() and parse with strtol.
man page fgets section 3
man page strtol...