From deccf98369a77c3fab8be3b26bab7c0c7f04bca3 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 26 May 2025 15:46:13 +0000 Subject: Boilerplate for main command Signed-off-by: Laurent Bercot --- src/s6/util.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/s6/util.c (limited to 'src/s6/util.c') diff --git a/src/s6/util.c b/src/s6/util.c new file mode 100644 index 0000000..699f976 --- /dev/null +++ b/src/s6/util.c @@ -0,0 +1,15 @@ +/* ISC license. */ + +#include + +#include "s6-internal.h" + +struct starts_with_a_string_key_s +{ + char const *s ; +} ; + +int keycmp (void const *a, void const *b) +{ + return strcmp((char const *)a, ((struct starts_with_a_string_key_s const *)b)->s) ; +} -- cgit v1.3.1