[libc-commits] [libc] [libc] Add stub implementation for strptime. (PR #211088)
Alex Strelnikov via libc-commits
libc-commits at lists.llvm.org
Mon Jul 27 07:55:06 PDT 2026
================
@@ -7,20 +7,21 @@
//===----------------------------------------------------------------------===//
///
/// \file
-/// Proxy header for struct group_source_req.
+/// This file contains the declaration of the strptime function.
///
//===----------------------------------------------------------------------===//
-#ifndef LLVM_LIBC_HDR_TYPES_STRUCT_GROUP_SOURCE_REQ_H
-#define LLVM_LIBC_HDR_TYPES_STRUCT_GROUP_SOURCE_REQ_H
-#ifdef LIBC_FULL_BUILD
+#ifndef LLVM_LIBC_SRC_TIME_STRPTIME_H
+#define LLVM_LIBC_SRC_TIME_STRPTIME_H
-#include "include/llvm-libc-types/struct_group_source_req.h"
+#include "hdr/types/struct_tm.h"
+#include "src/__support/macros/config.h"
-#else
+namespace LIBC_NAMESPACE_DECL {
-#include <netinet/in.h>
+char *strptime(const char *__restrict buf, const char *__restrict format,
+ const tm *__restrict tm);
----------------
strel-12 wrote:
Done, thanks.
https://github.com/llvm/llvm-project/pull/211088
More information about the libc-commits
mailing list