cpp/string/byte/atoi

Interprets an integer value in a byte string pointed to by. The implied radix is always 10.

Return value
Integer value corresponding to the contents of on success.

If no conversion can be performed, is returned.

Possible implementation
Actual C++ library implementations fall back to C library implementations of, , and , which either implement it directly (as in MUSL libc) or delegate to std/std (as in GNU libc).