atonum
if (!atonum(s, &num))
int atonum(const char *, uint16_t *);
if (!atonum(av[1], &rnum)) {
if (!atonum(av[0], &rnum))