This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add implementation of fgetc.
ClosedPublic

Authored by sivachandra on Oct 21 2022, 12:17 AM.

Diff Detail

Event Timeline

sivachandra created this revision.Oct 21 2022, 12:17 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 21 2022, 12:17 AM
sivachandra requested review of this revision.Oct 21 2022, 12:17 AM
michaelrj accepted this revision.Oct 21 2022, 10:26 AM

LGTM with nits

libc/src/stdio/fgetc.cpp
19

this should be size_t not ssize_t

20

nit: you don't need the braces here.

This revision is now accepted and ready to land.Oct 21 2022, 10:26 AM

Address comments.

This revision was landed with ongoing or failed builds.Oct 21 2022, 8:35 PM
This revision was automatically updated to reflect the committed changes.