[libc] add fgets
authorMichael Jones <michaelrj@google.com>
Wed, 26 Oct 2022 20:42:39 +0000 (13:42 -0700)
committerMichael Jones <michaelrj@google.com>
Thu, 27 Oct 2022 17:27:24 +0000 (10:27 -0700)
commit2d52283391bc81b1536345a644c30597564c0b1e
tree33a36b991a740c5e359ffdaaed43035a865139bf
parent10da9844d072df41d3eeeb6f104e2160fc7a2193
[libc] add fgets

This adds the fgets function and its unit tests.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D136785
libc/config/linux/x86_64/entrypoints.txt
libc/spec/stdc.td
libc/src/stdio/CMakeLists.txt
libc/src/stdio/fgets.cpp [new file with mode: 0644]
libc/src/stdio/fgets.h [new file with mode: 0644]
libc/test/src/stdio/CMakeLists.txt
libc/test/src/stdio/fgets_test.cpp [new file with mode: 0644]