summaryrefslogtreecommitdiff
path: root/src/libstddjb/tain_ulong.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/tain_ulong.c')
-rw-r--r--src/libstddjb/tain_ulong.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstddjb/tain_ulong.c b/src/libstddjb/tain_ulong.c
new file mode 100644
index 0000000..2ba730a
--- /dev/null
+++ b/src/libstddjb/tain_ulong.c
@@ -0,0 +1,9 @@
+/* ISC license. */
+
+#include <skalibs/tai.h>
+
+void tain_ulong (tain_t *t, unsigned long s)
+{
+ tai_u64(&t->sec, s) ;
+ t->nano = 0 ;
+}