Skip to main content
The second goto statement will always be executed.
Avoid the ‘ato*()’ family of functions. Their use can lead to undefined behavior, integer overflows, and lack of appropriate error handling. Instead prefer the ‘strtol*()’ family of functions.
Using == on char* performs pointer comparison, use strcmp instead
Avoid ‘sscanf()’ for number conversions. Its use can lead to undefined behavior, slow processing, and integer overflows. Instead prefer the ‘strto*()’ family of functions.
I