aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstddjb/stringkey_cmp.c
blob: 5c683c1d558f5f034aed051546ffe168cd6e337f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* ISC license. */

#include <string.h>

#include <skalibs/bytestr.h>
#include "bytestr-internal.h"

int stringkey_cmp (void const *a, void const *b)
{
  struct stringkey_s const *aa = a ;
  struct stringkey_s const *bb = b ;
  return strcmp(aa->s, bb->s) ;
}