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

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Thu Oct 31 09:02:46 PDT 2024


================
@@ -37,6 +37,14 @@ functions:
     arguments:
       - type: const time_t *
       - type: char *
+  - name: ctime_s
+    standard:
+      - stdc
+    return_type: int
+    arguments:
+      - type: char *
+      - type: size_t
+      - type: const time_t *
----------------
nickdesaulniers wrote:

I wonder if we should guard this on `__STDC_WANT_LIB_EXT1__` being defined as `1`? See `K.3.8.3.3 The ctime_s function`.

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


More information about the libc-commits mailing list