[all-commits] [llvm/llvm-project] 9f1d90: [libc] add snprintf
michaelrj-google via All-commits
all-commits at lists.llvm.org
Tue May 17 13:33:13 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9f1d905f39ac7f32b1965b8062c0803955ccbd0f
https://github.com/llvm/llvm-project/commit/9f1d905f39ac7f32b1965b8062c0803955ccbd0f
Author: Michael Jones <michaelrj at google.com>
Date: 2022-05-17 (Tue, 17 May 2022)
Changed paths:
M libc/config/linux/x86_64/entrypoints.txt
M libc/spec/stdc.td
M libc/src/stdio/CMakeLists.txt
A libc/src/stdio/snprintf.cpp
A libc/src/stdio/snprintf.h
M libc/src/stdio/sprintf.cpp
M libc/test/src/stdio/CMakeLists.txt
A libc/test/src/stdio/snprintf_test.cpp
Log Message:
-----------
[libc] add snprintf
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.
Reviewed By: lntue
Differential Revision: https://reviews.llvm.org/D125826
More information about the All-commits
mailing list