From ead0b1d0c6cc724e7f2d7eb2ed9273dd7a18935f Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Fri, 29 Oct 2021 17:02:39 +0200 Subject: Swapped .._equals() and _equalto() functions for consistency --- include/stc/alt/cstr.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/stc/alt') diff --git a/include/stc/alt/cstr.h b/include/stc/alt/cstr.h index e5dc65ec..98a090e0 100644 --- a/include/stc/alt/cstr.h +++ b/include/stc/alt/cstr.h @@ -163,15 +163,15 @@ STC_INLINE cstr_size_t cstr_capacity(cstr s) { return cstr_select_(&s, cap(&s)); } -STC_INLINE bool cstr_equalto(cstr s1, const char* str) { +STC_INLINE bool cstr_equals(cstr s1, const char* str) { return strcmp(cstr_str(&s1), str) == 0; } -STC_INLINE bool cstr_equalto_s(cstr s1, cstr s2) { +STC_INLINE bool cstr_equals_s(cstr s1, cstr s2) { return strcmp(cstr_str(&s1), cstr_str(&s2)) == 0; } -STC_INLINE int cstr_equals(const cstr* s1, const cstr* s2) { +STC_INLINE bool cstr_equalto(const cstr* s1, const cstr* s2) { return strcmp(cstr_str(s1), cstr_str(s2)) == 0; } -- cgit v1.2.3