MCPcopy Create free account
hub / github.com/KaisenAmin/c_std / string_is_equal

Function string_is_equal

string/std_string.c:622–625  ·  view source on GitHub ↗

* @brief Compares two String objects for equality. * * This function compares two String objects to check if they are equal. * It returns true if the strings are equal, otherwise false. * * @param str1 The first String object. Must not be NULL. * @param str2 The second String object. Must not be NULL. * * @return true if the strings are equal, false otherwise. */

Source from the content-addressed store, hash-verified

620 * @return true if the strings are equal, false otherwise.
621 */
622bool string_is_equal(const String* str1, const String* str2) {
623 STRING_LOG("[string_is_equal]: Checking if two strings are equal.\n");
624 return string_compare(str1, str2) == 0;
625}
626
627
628/**

Callers

nothing calls this directly

Calls 1

string_compareFunction · 0.85

Tested by

no test coverage detected