This program demonstrates a common technique of checking an value received from stdin and confirming that it is in fact a genuine integer or not.
validate-integers.c
isinteger.c
r.sh