_atol
function · crt · primitive
- Address
0x414411· 139 bytes, up to0x41449b- Signature
int32_t __cdecl (const char *string)- Meaning
- Reads C-locale white space, one sign and decimal digits into a wrapping 32-bit value; 0 for no digit
- Confidence
- verified, proof two
- Name from
- the community database (idb)
- Finding
- net/dial#integer-from-text
- Test
net::crt_atol
Finding: Integer from text in net: dial
_atol (0x414411) skips white space, which in the C locale is a tab to a carriage return and a space; reads one - or +; and then reads decimal digits, wrapping modulo 2^32, until the first byte that is not one. A - negates last. A text with no digit gives 0. The client never changes the locale, so the other form, __isctype for a locale whose characters take more than one byte, does not run.
The derivation is in the doc.
Callers 3
- _ProcessCodePage crt
- _atoi crt
- __tzset_lk crt
Callees 1
- __isctype crt
Calls and jumps by a bare address, from tables/calls.tsv.