strtonum.c - change return type to long