[clang] [clang-tools-extra] [libc] [libc][c11] implement ctime (PR #107285)
Зишан Мирза via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 6 09:23:26 PDT 2024
================
@@ -156,6 +156,13 @@ LIBC_INLINE struct tm *gmtime_internal(const time_t *timer, struct tm *result) {
return result;
}
+// TODO: localtime is not yet implemented and a temporary solution is to
+// use gmtime, https://github.com/llvm/llvm-project/issues/107597
+LIBC_INLINE struct tm *localtime(const time_t *timer, struct tm *result) {
+ struct tm *result = {0};
----------------
zimirza wrote:
`localtime` should only have one argument, so I removed `result`.
https://github.com/llvm/llvm-project/pull/107285
More information about the cfe-commits
mailing list