Strtoull
strtoull is a C standard library function that converts the initial portion of a string to an unsigned long long value using a specified or inferred integer base.
Modern C, Third Edition
strtoull is a C standard-library function that converts the initial part of a string to an unsigned long long integer using a specified or inferred base.
- How it is used
- Parses numbers from text while exposing the boundary needed to continue scanning a larger input string.
- How deep it goes
- Explains base selection, stopping characters, no-conversion detection, and end-pointer iteration, but not full error-range handling.
- Examples
- Uses repeated line parsing, the input 0789a under several bases, and generated ULLONG_MAX spellings with and without digit separators.
- What you can do after
- Apply it via the C library to parse one number or iterate through multiple numbers using the returned end pointer.
Modern C
strtoull is a C standard library function that converts the initial portion of a string to an unsigned long long value in a specified base and reports where parsing ends.
- How it is used
- Parses a string as a sequence of numbers while preserving each conversion's stopping position.
- How deep it goes
- Explains conversion, bases, end pointers, loop termination, and a const-qualification weakness, but defers broader error handling.
- Examples
- Uses "0789a" in bases 10 and 0, then embeds strtoull in numberline_inner.
- What you can do after
- Apply it via the C standard library to scan successive numeric fields and detect where parsing stops.
Related concepts
- strtoulalternative to · strtoul is a C standard library function that converts the initial portion of a string to an unsigned long value using a specified or inferred integer base.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

