Convert atoi(3) to stronum(3) which allows to arguments and report proper errors to the users Obtained from: OpenBSD