Skip to content

[ios.members.static] Fix fputc argument order - #9375

Merged
jensmaurer merged 1 commit into
cplusplus:mainfrom
firmiana402:editorial/fputc-argument-order
Nov 8, 2026
Merged

jensmaurer merged 1 commit into
cplusplus:mainfrom
firmiana402:editorial/fputc-argument-order

Conversation

@firmiana402

Copy link
Copy Markdown
Contributor

The description of ios_base::sync_with_stdio calls fputc(f, c), but fputc takes the character first and the stream second.

Correct the call to fputc(c, f) to match the declaration int fputc(int c, FILE* stream).

@jwakely jwakely left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This wording was added by LWG49 and so has been wrong since C++11.

@eisenwave eisenwave added the P1-Important Misapplication of paper, malformed code, internal inconsistencies label Nov 7, 2026
@jensmaurer
jensmaurer merged commit 6e43840 into cplusplus:main Nov 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1-Important Misapplication of paper, malformed code, internal inconsistencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants