Skip to content

libc: minimal: stdin: Add getc() implementation and unit tests #93047

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

Closed
wants to merge 2 commits into from

Conversation

seyoungjeong
Copy link

  • Implement getc() in lib/libc/minimal/source/stdin/stdin_console.c.
  • Add unit tests for getc(), fgetc(), fgets(), and getchar() in tests/lib/sscanf using a mock stdin hook.
  • Update headers and CMakeLists for new input support.

Resolves basic input API coverage for issue #66943.

- Implement getc() in lib/libc/minimal/source/stdin/stdin_console.c.
- Add unit tests for getc(), fgetc(), fgets(), and getchar() in tests/lib/sscanf using a mock stdin hook.
- Update headers and CMakeLists for new input support.

Resolves basic input API coverage for issue zephyrproject-rtos#66943.

Signed-off-by: Seyoung Jeong <seyoungjeong@gmail.com>
Copy link

@seyoungjeong
Copy link
Author

Will create new PR with fixes

@cfriedt
Copy link
Member

cfriedt commented Jul 13, 2025

Will create new PR with fixes

It's also perfectly normal to rewrite history in your branch and force-push.

No need to create a new PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Base OS Base OS Library (lib/os) area: C Library C Standard Library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants