Working on cmd bind

This commit is contained in:
2025-09-07 23:53:21 -05:00
parent e32d1f0900
commit 16a0403fd4
22 changed files with 86 additions and 768 deletions

View File

@@ -27,6 +27,12 @@ int stringCompare(const char_t *str1, const char_t *str2) {
return strcmp(str1, str2);
}
int stringCompareInsensitive(const char_t *str1, const char_t *str2) {
assertNotNull(str1, "str1 must not be NULL");
assertNotNull(str2, "str2 must not be NULL");
return strcasecmp(str1, str2);
}
void stringTrim(char_t *str) {
assertNotNull(str, "str must not be NULL");

View File

@@ -36,6 +36,16 @@ void stringCopy(char_t *dest, const char_t *src, const size_t destSize);
*/
int stringCompare(const char_t *str1, const char_t *str2);
/**
* Compares two strings, ignoring case.
*
* @param str1 The first string.
* @param str2 The second string.
* @return 0 if the strings are equal, -1 if str1 is less than str2, 1 if str1
* is greater than str2.
*/
int stringCompareInsensitive(const char_t *str1, const char_t *str2);
/**
* Trims whitespace from the beginning and end of a string.
*