zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.61k stars 6.5k forks source link

libc: implement `fgets()` #66937

Open ycsin opened 9 months ago

ycsin commented 9 months ago

This was originally added as a ticket under POSIX, but fgets() is not a POSIX function. It is from C89.

https://en.cppreference.com/w/c/io/fgets

The expectation from the POSIX API is that this function is implemented as part of whatever C library is in use.

Sh0g0-1758 commented 8 months ago

@cfriedt, do you have a draft PR for this? If not I would like to work on this.