new atou() function added to misc.c