diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-05-26 15:46:13 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-05-26 15:46:13 +0000 |
| commit | deccf98369a77c3fab8be3b26bab7c0c7f04bca3 (patch) | |
| tree | e7f1ecd1764a1657bc83b6f860a24592d8a2b42b /src/s6/util.c | |
| parent | 31c208b970599588b00837294871fa4e4eeb01de (diff) | |
| download | s6-frontend-deccf98369a77c3fab8be3b26bab7c0c7f04bca3.tar.gz | |
Boilerplate for main command
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/s6/util.c')
| -rw-r--r-- | src/s6/util.c | 15 |
1 files changed, 15 insertions, 0 deletions
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 <string.h> + +#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) ; +} |
