Check if one string ends with another
| 557 | |
| 558 | /// Check if one string ends with another |
| 559 | bool dStrEndsWith(const char* str1, const char* str2) |
| 560 | { |
| 561 | const char *p = str1 + dStrlen(str1) - dStrlen(str2); |
| 562 | return ((p >= str1) && !dStricmp(p, str2)); |
| 563 | } |
| 564 | |
| 565 | /// Strip the path from the input filename |
| 566 | char* dStripPath(const char* filename) |
no test coverage detected