Skip to content

Update fflush sample #1560

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 2 commits into from
Sep 11, 2019
Merged

Update fflush sample #1560

merged 2 commits into from
Sep 11, 2019

Conversation

amyw-msft
Copy link
Member

Using fflush(stdin) no longer has any effect. This is reflected in the description, not the sample. I've made a new sample that demonstrates using fflush to ensure data is written to a file in case of a crash.

Using fflush(stdin) no longer has any effect. This is reflected in the description, not the sample. I've made a new sample that demonstrates using fflush to ensure data is written to a file in case of a crash.
@PRMerger12
Copy link
Contributor

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

No `nullptr` in C.
CRT sample compiles cleanly using both `/W4 /analyze /TC /Za` and `/W4 /analyze /TP /permissive-`.
@PRMerger9
Copy link
Contributor

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

Copy link
Contributor

@colin-home colin-home left a comment

Choose a reason for hiding this comment

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

@stwish-msft
Looks useful, thanks for the update. I tweaked it a bit to compile cleanly both as C and C++.

@colin-home colin-home merged commit ba08827 into MicrosoftDocs:master Sep 11, 2019
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