shorten the atoi function in clib.c