[libc-commits] [libc] [libc] Add `ctime_s` (PR #110676)

via libc-commits libc-commits at lists.llvm.org
Tue Oct 1 13:18:02 PDT 2024


================
@@ -0,0 +1,39 @@
+//===-- Implementation of ctime_s function --------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "ctime_s.h"
+#include "src/__support/CPP/limits.h"
+#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
+#include "time_utils.h"
+#include <cerrno>
----------------
lntue wrote:

use `"hdr/errno_macros.h"` instead.

https://github.com/llvm/llvm-project/pull/110676


More information about the libc-commits mailing list