mirror of
https://github.com/systemd/systemd.git
synced 2025-01-18 10:04:04 +03:00
Add helper for case-independent string equality checks
This commit is contained in:
parent
537ae584c8
commit
bd47b0dac4
@ -33,6 +33,10 @@ static inline bool streq_ptr(const char *a, const char *b) {
|
||||
return strcmp_ptr(a, b) == 0;
|
||||
}
|
||||
|
||||
static inline bool strcaseeq_ptr(const char *a, const char *b) {
|
||||
return strcasecmp_ptr(a, b) == 0;
|
||||
}
|
||||
|
||||
static inline char* strstr_ptr(const char *haystack, const char *needle) {
|
||||
if (!haystack || !needle)
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user