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

Function string_is_less

string/std_string.c:638–641  ·  view source on GitHub ↗

* @brief Compares if the first String object is less than the second. * * This function compares two String objects to determine if the first one is lexicographically less than the second. * * @param str1 The first String object. Must not be NULL. * @param str2 The second String object. Must not be NULL. * * @return true if str1 is less than str2, false otherwise. */

Source from the content-addressed store, hash-verified

636 * @return true if str1 is less than str2, false otherwise.
637 */
638bool string_is_less(const String* str1, const String* str2) {
639 STRING_LOG("[string_is_less]: Checking if the first string is less than the second.\n");
640 return string_compare(str1, str2) < 0;
641}
642
643
644/**

Callers

nothing calls this directly

Calls 1

string_compareFunction · 0.85

Tested by

no test coverage detected