private.h: add static_strequal()

This commit is contained in:
Boris Faure 2020-09-01 19:00:30 +02:00
parent 12963c304c
commit 84a46280f6
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 3 additions and 0 deletions

View File

@ -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)