Add xy_streql()

This commit is contained in:
Aoran Zeng
2023-08-31 16:54:06 +08:00
parent 524a762c96
commit f63b224b95
2 changed files with 10 additions and 4 deletions

View File

@@ -205,4 +205,10 @@ xy_strjoin (unsigned int count, ...)
return ret;
}
bool
xy_streql(const char* str1, const char* str2) {
return strcmp(str1, str2) == 0 ? true : false;
}
#endif