Check if one string ends with another
| 495 | |
| 496 | /// Check if one string ends with another |
| 497 | bool dStrEndsWith(const char* str1, const char* str2) |
| 498 | { |
| 499 | const char *p = str1 + dStrlen(str1) - dStrlen(str2); |
| 500 | return ((p >= str1) && !dStricmp(p, str2)); |
| 501 | } |
| 502 | |
| 503 | /// Strip the path from the input filename |
| 504 | char* dStripPath(const char* filename) |
no test coverage detected