summaryrefslogtreecommitdiff
path: root/src/libstddjb/tain_earliest1.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-06-13 22:19:05 +0000
committerLaurent Bercot <ska@appnovation.com>2023-06-13 22:19:05 +0000
commit193a7be520502f24e995b71768dd89c37b3776eb (patch)
tree29a1d10e1e74220c9d0d463bbcb03aa7c1954583 /src/libstddjb/tain_earliest1.c
parent8fac1ec21fc54a050822258d8873b9a87a2bd2fe (diff)
downloadskalibs-193a7be520502f24e995b71768dd89c37b3776eb.tar.xz
Fix iter_func type; add tain_earliest
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libstddjb/tain_earliest1.c')
-rw-r--r--src/libstddjb/tain_earliest1.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstddjb/tain_earliest1.c b/src/libstddjb/tain_earliest1.c
new file mode 100644
index 0000000..af6ba3a
--- /dev/null
+++ b/src/libstddjb/tain_earliest1.c
@@ -0,0 +1,8 @@
+/* ISC license. */
+
+#include <skalibs/tai.h>
+
+void tain_earliest1 (tain *t, tain const *u)
+{
+ if (tain_less(u, t)) *t = *u ;
+}