Skip to content

More stdio rules (fputc, fputs, puts, fileno)#126

Merged
nunoplopes merged 4 commits into
Cpp2Rust:masterfrom
lucic71:stdio-rules
May 20, 2026
Merged

More stdio rules (fputc, fputs, puts, fileno)#126
nunoplopes merged 4 commits into
Cpp2Rust:masterfrom
lucic71:stdio-rules

Conversation

@lucic71
Copy link
Copy Markdown
Contributor

@lucic71 lucic71 commented May 19, 2026

No description provided.

@lucic71 lucic71 mentioned this pull request May 19, 2026
Comment thread tests/unit/stdio.c Outdated
assert(fileno(stdin) == 0);
assert(fileno(stdout) == 1);
assert(fileno(stderr) == 2);
FILE *fp = fopen("/tmp/cpp2rust_fileno_test.tmp", "wb");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this is bad; we need to start cleaning trash left behind. Please leave a TODO for whenever unlink works.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It will come in #127. I will leave a TODO in this PR

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

@nunoplopes nunoplopes merged commit 6dc1853 into Cpp2Rust:master May 20, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants