From 907f1c64369095b5b2d5f6fb23a8b937720d94cc Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 23 Oct 2023 12:30:58 +0000 Subject: More tipidee-config refactoring, headers functions are clean Signed-off-by: Laurent Bercot --- src/config/util.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/config/util.c (limited to 'src/config/util.c') diff --git a/src/config/util.c b/src/config/util.c new file mode 100644 index 0000000..bee1503 --- /dev/null +++ b/src/config/util.c @@ -0,0 +1,15 @@ +/* ISC license. */ + +#include + +#include "tipidee-config-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