summaryrefslogtreecommitdiffstats
path: root/lib/libc/time/strftime_l.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/time/strftime_l.c')
-rw-r--r--lib/libc/time/strftime_l.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libc/time/strftime_l.c b/lib/libc/time/strftime_l.c
new file mode 100644
index 00000000000..4d3face1c95
--- /dev/null
+++ b/lib/libc/time/strftime_l.c
@@ -0,0 +1,14 @@
+/* $OpenBSD: strftime_l.c,v 1.1 2017/09/05 03:16:14 schwarze Exp $ */
+/*
+ * Written in 2017 by Ingo Schwarze <schwarze@openbsd.org>.
+ * Released into the public domain.
+ */
+
+#include <time.h>
+
+size_t
+strftime_l(char *s, size_t maxsize, const char *format, const struct tm *t,
+ locale_t locale __attribute__((__unused__)))
+{
+ return strftime(s, maxsize, format, t);
+}