fgetwc(3) may set both SEOF and SERR at once (in case of incomplete
sequence near EOF), so we can't just check for
(wc == WEOF && !sfeof(fp)) and must relay on sferror(fp) with
__SERR clearing/restoring.
MFC after: 7 days
fgetwc(3) may set both __SEOF and __SERR at once (in case of incomplete Tags None Referenced Files None Subscribers None
Description
Details
|