summaryrefslogtreecommitdiff
path: root/libc/test/src/time/strftime_test.cpp
AgeCommit message (Collapse)Author
2025-10-30[libc] Fix strftime_test (#165770)Michael Jones
A typo in #165711 caused sanitizer failures (the small buffer was used for the larger test). Renamed the variables to avoid the mistake in future.
2025-10-30[libc] Fix off by one error in strftime (#165711)Marcell Leleszi
This patch fixes a bug in strftime's return value when the formatted output exactly fills the buffer, not including the null terminator. The previous check failed to account for the null terminator in this case, incorrectly returning the written count instead of 0.
2025-03-14[libc] Fix implicit conversion warnings in tests. (#131362)lntue
2025-02-14[libc] Implement strftime (#122556)Michael Jones
Implements the posix-specified strftime conversions for the default locale, along with comprehensive unit tests. This reuses a lot of design from printf, as well as the printf writer. Roughly based on #111305, but with major rewrites.