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:
Stephen Heumann 2023-06-11 16:07:19 -05:00
parent 6bc1c3741c
commit a5504be621
1 changed files with 1 additions and 0 deletions

View File

@ -6153,6 +6153,7 @@ ps stz ~assignments no assignments yet
stz ~eofFound eof was not the first char
ps1 lda ~scanError quit if a scan error has occurred
ora ~eofFound
bne rm1
lda [format] get a character
and #$00FF