29 Jan
2019
29 Jan
'19
5:18 p.m.
Takashi Sakamoto wrote:
When parsing string with non-numeric characters, the behaviour of atoi() is undefined still in C11.
A completely non-numeric string is specified to return zero.
The behaviour is undefined only if the value cannot be represented, i.e., if it overflows.
Regards, Clemens