Change function 'atoi()' to 'strtol()'