[libc] fix scanf error handling
Scanf is supposed to return EOF when it fails to make any conversions and there is an input failure. Previously it would return EOF on a matching failure, which may be an input failure but can also be a parsing error. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D139891
Loading
Please sign in to comment