benilla-re systems structs docs

RemoveOrderingFromFormatSpecifier

function · storm · primitive

Address
0x669c50 · 103 bytes, up to 0x669cb6
Signature
void __fastcall (char *spec)
Meaning
Cuts the first $ and the digits before it out of a conversion spec
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 3

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