private.h: add static_strequal()

terminology-1.9
Boris Faure 2 years ago
parent 12963c304c
commit 84a46280f6
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
  1. 3
      src/bin/private.h

@ -58,6 +58,9 @@ extern int _log_domain;
#define startswith(str, constref) \
(!strncmp(str, constref, sizeof(constref) - 1))
#define static_strequal(STR, STATIC_STR) \
(!strncmp(STR, STATIC_STR, strlen(STATIC_STR)))
#if !defined(HAVE_STRCHRNUL)
static inline char *
strchrnul(const char *s, int c)

Loading…
Cancel
Save