benilla-re systems structs docs

ParseFormatSpecifier

function · storm · primitive

Address
0x669ab0 · 262 bytes, up to 0x669bb5
Signature
int32_t __fastcall (const char **cursor, uint32_t *kind, int32_t *index)
Meaning
Parses one conversion after a %: its N$ index, its argument kind, and whether it takes an argument
Confidence
verified, proof one
Name from
the community database (idb)
Finding
storm/printf#parsing-a-conversion
Test
storm::vsnoprintf_difftest

Finding: Parsing a conversion in storm: printf

ParseFormatSpecifier walks from the byte after the %. Digits build a number, and $ sets the index to it less one, or to 0 for none; any other clears the number and is classed. A digit is what _isdigit says of the byte sign-extended (#bytes-that-count-as-digits). % and NUL end a spec taking no argument, C D U X c d i u x an integer, 8 bytes after ll or I64, E F G e f g a double, P S p s a pointer. Every other byte goes on, so %o runs on to the next ending byte. _snprintf gets the spec with its first $ and the digits before it cut, and an 8-byte integer's ll made I64.

The derivation is in the doc.

Callers 1

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.