diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-10-23 12:30:58 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2023-10-23 12:30:58 +0000 |
| commit | 907f1c64369095b5b2d5f6fb23a8b937720d94cc (patch) | |
| tree | cb4eebe2b754040af876b3069233b176597b9d4e /src/config/util.c | |
| parent | 12891d0e8551e3d6bb7bf1429f936e04be4da8b5 (diff) | |
| download | tipidee-907f1c64369095b5b2d5f6fb23a8b937720d94cc.tar.gz | |
More tipidee-config refactoring, headers functions are clean
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/config/util.c')
| -rw-r--r-- | src/config/util.c | 15 |
1 files changed, 15 insertions, 0 deletions
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 <string.h> + +#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) ; +} |
