refine the atoi in clib.c