scanf: skip remaining directives after encountering EOF.
Encountering EOF is an input failure, which terminates scanf processing. Thus, remaining directives (even %n) should not be processed.
This commit is contained in:
parent
6bc1c3741c
commit
a5504be621
|
@ -6153,6 +6153,7 @@ ps stz ~assignments no assignments yet
|
||||||
stz ~eofFound eof was not the first char
|
stz ~eofFound eof was not the first char
|
||||||
|
|
||||||
ps1 lda ~scanError quit if a scan error has occurred
|
ps1 lda ~scanError quit if a scan error has occurred
|
||||||
|
ora ~eofFound
|
||||||
bne rm1
|
bne rm1
|
||||||
lda [format] get a character
|
lda [format] get a character
|
||||||
and #$00FF
|
and #$00FF
|
||||||
|
|
Loading…
Reference in New Issue