aboutsummaryrefslogtreecommitdiffstats
path: root/src/s6/util.c
blob: 699f976c8e84ea0d3bb153c730e024b046f73dcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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) ;
}