__hextodec
function · crt · primitive
- Address
0x745846· 55 bytes, up to0x74587c- Signature
int32_t __cdecl (int32_t c)- Meaning
- Returns a digit as it is and a letter as its value plus 0x30
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- crt/scanf#integer-conversions
- Test
crt::crt_sscanf_fixed_difftest,crt::crt_sscanf_random_difftest
Finding: Integer conversions in crt: formatted input
d, i, u, o, x, X and p read an optional sign and then digits, in 32 bits that wrap, or
64 with I64. d, u and i take decimal digits, o the digits below 8, x hex digits; p hex and 32 bits, but with I64 decimal and 64.
i and x also read 0x or 0X after the sign; i followed by a 0 then not an x reads octal.
The sign takes one of the width, a 0 and x prefix none.
A - negates in the width of the store. With no digit the conversion fails. The store is eight
bytes for I64, else four unless the size byte is 0, then two.
The derivation is in the doc.
Callers 1
- __input crt
Callees 1
- __isctype crt
Calls and jumps by a bare address, from tables/calls.tsv.