jasonbu opened a new pull request, #14924: URL: https://github.com/apache/nuttx/pull/14924
## Summary EOF is libc definition, not the stream definition, we should use errno to handle the stream getc EOF case. As we have lots of backend to support stream, which necessary to get errno. first find in #14778, casing scanftest break at " %4c%n" case. then scanf use INT_MAX cause meminstream EOF break. ## Impact sscanf will do strlen firsttime, and then meminstream. filestream/blkstream/mtdstream will able to handle the errno. ## Testing CI-test, local sim:citest test. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org