``` std::string str = "42"; int a = std::atoi(str.c_str()); // INCORRECT int b = std::stoi(str); // OK ``` Since `std::atoi` is ancient and might produce bugs in overflow cases.