[libc-commits] [PATCH] D138076: [libc] add scanf entrypoints

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Nov 15 16:07:55 PST 2022


michaelrj created this revision.
michaelrj added reviewers: sivachandra, lntue.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
michaelrj requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138076

Files:
  libc/config/linux/x86_64/entrypoints.txt
  libc/spec/stdc.td
  libc/src/stdio/CMakeLists.txt
  libc/src/stdio/fscanf.cpp
  libc/src/stdio/fscanf.h
  libc/src/stdio/scanf.cpp
  libc/src/stdio/scanf.h
  libc/src/stdio/scanf_core/CMakeLists.txt
  libc/src/stdio/scanf_core/vfscanf_internal.cpp
  libc/src/stdio/scanf_core/vfscanf_internal.h
  libc/src/stdio/sscanf.cpp
  libc/src/stdio/sscanf.h
  libc/test/src/stdio/CMakeLists.txt
  libc/test/src/stdio/fscanf_test.cpp
  libc/test/src/stdio/sscanf_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138076.475622.patch
Type: text/x-patch
Size: 16691 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20221116/12a76d22/attachment-0001.bin>


More information about the libc-commits mailing list