[libc-commits] [PATCH] D125826: [libc] add snprintf

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue May 17 12:05:30 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.

After adding sprintf, snprintf is simple. The functions are very
similar. The tests only cover the behavior of the max length since the
sprintf tests should cover the other behavior.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125826

Files:
  libc/config/linux/x86_64/entrypoints.txt
  libc/spec/stdc.td
  libc/src/stdio/CMakeLists.txt
  libc/src/stdio/snprintf.cpp
  libc/src/stdio/snprintf.h
  libc/test/src/stdio/CMakeLists.txt
  libc/test/src/stdio/snprintf_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125826.430150.patch
Type: text/x-patch
Size: 6734 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220517/76be5b66/attachment.bin>


More information about the libc-commits mailing list