_sscanf
function · crt · orchestration
- Address
0x73fb5d· 52 bytes, up to0x73fb90- Signature
int32_t __cdecl (const char *string, const char *format, ...)- Meaning
- Runs __input over a string stream and returns the stored conversions, or -1 for EOF before a match
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- crt/scanf#the-string-stream
- Test
crt::crt_sscanf_fixed_difftest,crt::crt_sscanf_random_difftest
Finding: The string stream in crt: formatted input
sscanf(s, fmt, ...) (0x73fb5d) builds a stack FILE with _ptr and _base at s, _cnt its
length and _flag 0x49 (read, string, own buffer), and answers __input(stream, fmt, args)
(0x744e21). _inc (0x74587d) takes the next byte, unsigned, while --_cnt is not negative; past
the end __filbuf (0x745946) answers EOF, −1, and the count keeps falling. __un_inc (0x745897)
ignores EOF; _ungetc_lk (0x741c1b) keeps its step back and raises _cnt only when the byte there
is the one pushed, so a pushback never changes the string, and at the start with _cnt other than 0
it refuses. __whiteout (0x7458ae) counts and reads until a byte is not a space.
The derivation is in the doc.
Callers 31
- GetScreenAspect glue
- Script::GetMovieResolution glue
- Script::GetCurrentResolution ui
- Script::SetScreenResolution ui
- GetConfiguredAspect ui
- Script::GetInboxInvoiceInfo ui
- LoadGlExtensions gx
- ServerLink::CmdGruntProvesession net
- ConsoleCommandFontColor console
- ConsoleCommandConsoleLines console
- ConsoleCommandBgColor console
- ConsoleCommandHighlightColor console
- GxResolutionCallback console
- ConsoleSetMaxLod terrain
- ConsoleSetShadowColor terrain
- ConsoleSetWeather terrain
- ConsoleSetWeather2 terrain
- ConsoleSetWeather1 terrain
- ConsoleSetWeather3 terrain
- ConsoleSetWaterMaxLod terrain
- ConsoleSetWaterWaves terrain
- ConsoleSetWaterSpecular terrain
- ConsoleSetWaterRipples terrain
- ConsoleSetAlphaRef terrain
- HandleLodDistOption cvar
- HandleSmallCullOption cvar
- ValidateTextureLodDistance terrain
- HandleFootstepBiasOption cvar
- SkySunGlareCommand lighting
- OnShadowLodChanged lighting
- OnShadowBiasChanged lighting
Callees 2
Calls and jumps by a bare address, from tables/calls.tsv.