__filbuf
function · crt · boundary
- Address
0x745946· 220 bytes, up to0x745a21- Meaning
- Answers EOF at once for a string stream, else refills a stream's buffer from its file
- Confidence
- inferred
- Name from
- the community database (idb)
- Finding
- crt/scanf#the-string-stream
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 4
Callees 2
Calls and jumps by a bare address, from tables/calls.tsv.