diff --git a/thirdparty/gbstring.c b/thirdparty/gbstring.c index 9b46859..4be85ed 100644 --- a/thirdparty/gbstring.c +++ b/thirdparty/gbstring.c @@ -27,7 +27,7 @@ int main(int argc, char **argv) { str = gbs_cpy(str, "Hello"); other_str = gbs_cpy(other_str, "Pizza"); - if (gbs_streq(str, other_str)) + if (gbs_equal(str, other_str)) printf("Not called\n"); else printf("Called\n"); @@ -173,7 +173,7 @@ size_t gbs_totalmemused(gbs const s) { return sizeof(gbStringHeader) + cap; } -bool gbs_streq(gbs const lhs, gbs const rhs) { +bool gbs_equal(gbs const lhs, gbs const rhs) { size_t lhs_len, rhs_len, i; lhs_len = gbs_len(lhs); rhs_len = gbs_len(rhs); diff --git a/thirdparty/gbstring.h b/thirdparty/gbstring.h index d6cdbdc..2ab8bc9 100644 --- a/thirdparty/gbstring.h +++ b/thirdparty/gbstring.h @@ -27,7 +27,7 @@ gbs gbs_cpy(gbs str, char const *cstr); gbs gbs_makeroomfor(gbs str, size_t add_len); -bool gbs_streq(gbs const lhs, gbs const rhs); +bool gbs_equal(gbs const lhs, gbs const rhs); gbs gbs_trim(gbs str, char const *cut_set);