_strtoul
function · crt · boundary
- Address
0x40dd0e· 23 bytes, up to0x40dd24- Signature
unsigned long __cdecl (const char *s, char **end, int base)- Meaning
- Calls _strtoxl with the unsigned flag 1
- Confidence
- verified, proof two
- Name from
- the community database (idb)
- Finding
- ui/luabase#tonumber
Finding: tonumber in ui: the Lua base library
tonumber(v [, base]) takes the base as __ftol of the optional number, default 10. Base 10 requires an argument and
answers its number value when lua_isnumber holds, else nil. Another base must be 2 to 36 (base out of range) and v
a string: strtoul (0x40dd0e, which calls _strtoxl 0x40db09 with the unsigned flag) parses it, and the answer is the unsigned value when nothing but white space follows the digits, else
nil. A string with no digits answers nil.
The derivation is in the doc.
Callers 3
- 0x64c650 storm
- ParseSwitchNumber storm
- ScriptToNumber ui
Callees 1
- _strtoxl crt
Calls and jumps by a bare address, from tables/calls.tsv.