Introduce strcasecmp_ptr() and use it in a few places

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-06-03 15:31:28 +02:00
parent 6773049a4c
commit 6cf3011c6c
3 changed files with 24 additions and 45 deletions
+1
View File
@@ -27,6 +27,7 @@
#define strncaseeq(a, b, n) (strncasecmp((a), (b), (n)) == 0)
int strcmp_ptr(const char *a, const char *b) _pure_;
int strcasecmp_ptr(const char *a, const char *b) _pure_;
static inline bool streq_ptr(const char *a, const char *b) {
return strcmp_ptr(a, b) == 0;