Skip to content

Fix std::fputws return value documentation #2989

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 25, 2021

Conversation

Radfordhound
Copy link
Contributor

The current Microsoft documentation for std::fputws incorrectly states that it "returns WEOF", when, in reality, it returns EOF as-per the C/C++ standard.

I've verified this by checking ucrt's "stdio\fputws.cpp", which returns EOF and also makes a note of this in a comment:

(Note well that we return EOF and not WEOF on failure.  This is intentional, and is the correct behavior per the C Language Standard).

std::fputws returns EOF, not WEOF.
@PRMerger8
Copy link
Contributor

@Radfordhound : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Copy link
Collaborator

@TylerMSFT TylerMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for improving the docs!

@TylerMSFT TylerMSFT merged commit ee04469 into MicrosoftDocs:master Feb 25, 2021
@Radfordhound Radfordhound deleted the patch-1 branch February 25, 2021 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants