aboutsummaryrefslogtreecommitdiffstats
path: root/enlocaltime.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-02-26 17:30:12 +0100
committerMattias Andrée <maandree@kth.se>2021-02-26 17:30:12 +0100
commitdde83349da01f4b2d6a2e4182fc7a3cc627745f6 (patch)
tree171e9bfee1056d452174663c3b2ce5fcbf288e6b /enlocaltime.c
parentAdd tests (diff)
downloadlibsimple-dde83349da01f4b2d6a2e4182fc7a3cc627745f6.tar.gz
libsimple-dde83349da01f4b2d6a2e4182fc7a3cc627745f6.tar.bz2
libsimple-dde83349da01f4b2d6a2e4182fc7a3cc627745f6.tar.xz
Add libsimple_[e[n]]{local,gm}time, remove dates from man pages, and add blank lines between sections in man pages
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--enlocaltime.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/enlocaltime.c b/enlocaltime.c
new file mode 100644
index 0000000..aa94869
--- /dev/null
+++ b/enlocaltime.c
@@ -0,0 +1,23 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+void
+libsimple_enlocaltime(int status, struct tm *tm, struct timespec *ts)
+{
+ if (libsimple_localtime(tm, ts))
+ enprintf(status, "libsimple_localtime:");
+}
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ /* TODO test */
+}
+
+#endif