Skip to content

Fix std::fputws return value documentation#2989

Merged
TylerMSFT merged 1 commit into
MicrosoftDocs:masterfrom
Radfordhound:patch-1
Feb 25, 2021
Merged

Fix std::fputws return value documentation#2989
TylerMSFT merged 1 commit into
MicrosoftDocs:masterfrom
Radfordhound:patch-1

Conversation

@Radfordhound
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

Copy link
Copy Markdown
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