s_scanEmptySet
global · crt
- Address
0x8763c8· 2 bytes, up to0x8763c9- Type
char[2]- Meaning
- Holds the empty scanset of %c, a bracket alone, which scanf complements
- Confidence
- verified, proof one
- Finding
- crt/scanf#character-sets
Finding: Character sets in crt: formatted input
%c, %s and %[ build a 256-bit set and copy bytes while the set accepts them. %c reads
width bytes (1 if unset) and accepts every byte, %s every byte but 9 to 13 and 0x20. %[...]
lists bytes and ranges a-b, in either order; a leading ^ complements the set, a ] first in
it belongs to it, and a - first or last is a byte. The width counts bytes. Narrow output stores
the bytes; wide output stores each as an unsigned 16-bit unit. %s and %[ end the output with a
NUL unit; %c does not. No byte taken fails. A set the format leaves open reads on past the
format's NUL until a ].
The derivation is in the doc.