Any idea why this is considered a no no 20.10 (req): The library functions 'atof', 'atoi' and 'atol' from library <stdlib.h> shall not be used.
It almost cries out for : OR THOU SHALL BE CAST FROM THE GARDEN AND BE ETERNAL IN HELL!
These rules are not random or capricious, a little searching on these functions would have turned up lots of reasons.
https://blog.mozilla.org/nnethercote/2009/03/13/atol-considered-harmful/