Safe form of dStrcmp: checks both strings for NULL before comparing
| 480 | |
| 481 | /// Safe form of dStrcmp: checks both strings for NULL before comparing |
| 482 | bool dStrEqual(const char* str1, const char* str2) |
| 483 | { |
| 484 | if (!str1 || !str2) |
| 485 | return false; |
| 486 | else |
| 487 | return (dStrcmp(str1, str2) == 0); |
| 488 | } |
| 489 | |
| 490 | /// Check if one string starts with another |
| 491 | bool dStrStartsWith(const char* str1, const char* str2) |
no test coverage detected