This is an archive of the discontinued LLVM Phabricator instance.

[libc] add scanf entrypoints
ClosedPublic

Authored by michaelrj on Nov 15 2022, 4:07 PM.

Details

Summary

This patch adds scanf, sscanf, and fscanf entrypoints. It also adds unit
tests for sscanf and a basic test to fscanf. The scanf function is
basically impossible to test in an automated fashion due to it recieving
user input.

Diff Detail

Event Timeline

michaelrj created this revision.Nov 15 2022, 4:07 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptNov 15 2022, 4:07 PM
michaelrj requested review of this revision.Nov 15 2022, 4:07 PM
lntue accepted this revision.Nov 16 2022, 7:20 AM
This revision is now accepted and ready to land.Nov 16 2022, 7:20 AM
sivachandra accepted this revision.Nov 16 2022, 9:56 PM
This revision was landed with ongoing or failed builds.Nov 17 2022, 3:37 PM
This revision was automatically updated to reflect the committed changes.