llvm-project/libc/test
Raman Tenneti a72499e475 [libc] Introduce asctime, asctime_r to LLVM libc
[libc] Introduce asctime, asctime_r to LLVM libc

asctime and asctime_r share the same common code. They call asctime_internal
a static inline function.

asctime uses snprintf to return the string representation in a buffer.
It uses the following format (26 characters is the buffer size) as per
7.27.3.1 section in http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2478.pdf.
The buf parameter for asctime_r shall point to a buffer of at least 26 bytes.

snprintf(buf, 26, "%.3s %.3s%3d %.2d:%.2d:%.2d %d\n",...)

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D99686
2021-05-03 17:15:00 -07:00
..
config [libc][NFC] add "LlvmLibc" as a prefix to all test names 2021-01-20 23:15:36 +00:00
loader [libc][NFC] Disable a loader test as ld.gold fails to link. 2020-08-07 23:45:18 -07:00
src [libc] Introduce asctime, asctime_r to LLVM libc 2021-05-03 17:15:00 -07:00
utils [libc] Enhance ArrayRef + unittests 2021-04-21 13:25:24 +00:00
CMakeLists.txt [libc][NFC] Add an alias named "check-llvmlibc" for "check-libc". 2021-03-22 16:55:34 +00:00
ErrnoSetterMatcher.h [libc][obvious] Move ErrnoSetterMatcher to test/ErrnoSetterMetcher.h. 2020-07-28 11:05:52 -07:00