[libc-commits] [PATCH] D125573: [libc] add sprintf

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri May 13 11:15:18 PDT 2022


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

This adds the sprintf entrypoint, as well as unit tests. Currently
sprintf only supports %%, %s, and %c, but the other conversions are on
the way.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125573

Files:
  libc/config/linux/x86_64/entrypoints.txt
  libc/spec/stdc.td
  libc/src/stdio/CMakeLists.txt
  libc/src/stdio/printf_core/CMakeLists.txt
  libc/src/stdio/sprintf.cpp
  libc/src/stdio/sprintf.h
  libc/test/src/stdio/CMakeLists.txt
  libc/test/src/stdio/sprintf_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125573.429301.patch
Type: text/x-patch
Size: 8106 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220513/70aa6b1d/attachment.bin>


More information about the libc-commits mailing list