atoX functions replaced with strtoX implementation.