Skip to content

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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
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 seyoungjeong marked this pull request as ready for review July 13, 2025 04:37
@github-actions github-actions bot added area: C Library C Standard Library area: Base OS Base OS Library (lib/os) labels Jul 13, 2025
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.

2 participants