diff options
author | Mattias Andrée <maandree@kth.se> | 2021-02-26 17:30:12 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-02-26 17:30:12 +0100 |
commit | dde83349da01f4b2d6a2e4182fc7a3cc627745f6 (patch) | |
tree | 171e9bfee1056d452174663c3b2ce5fcbf288e6b /enlocaltime.c | |
parent | Add tests (diff) | |
download | libsimple-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.c | 23 |
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 |