string-helpers: add str_equal()

This commit is contained in:
tokyo4j 2025-01-08 15:07:06 +09:00 committed by Hiroaki Yamamoto
parent 45f73b58a1
commit 5e29f79258
3 changed files with 15 additions and 5 deletions

View file

@ -92,4 +92,13 @@ bool str_endswith_ignore_case(const char *const string, const char *const suffix
*/
bool str_starts_with(const char *s, char needle, const char *ignore_chars);
/**
* str_equal - indicate whether two strings are identical
* @a: first string to compare
* @b: second string to compare
*
* If both strings are NULL, returns true.
*/
bool str_equal(const char *a, const char *b);
#endif /* LABWC_STRING_HELPERS_H */