Closed mfrey closed 5 years ago
How many a calls of atoi are left in the code?
How many a calls of atoi are left in the code?
$ git grep atoi | wc -l 42
Seems a reasonable task?
I agree, that we have to replace atoi.
I agree, that we have to replace atoi.
Same goes for atof
.
$ git grep atof | wc -l
5
Description
The function
atoi
can invoke undefined behavior upon error. See also C11 7.22.1.2. The corresponding calls would be