Strip the path from the input filename
| 564 | |
| 565 | /// Strip the path from the input filename |
| 566 | char* dStripPath(const char* filename) |
| 567 | { |
| 568 | const char* itr = filename + dStrlen(filename); |
| 569 | while(--itr != filename) { |
| 570 | if (*itr == '/' || *itr == '\\') { |
| 571 | itr++; |
| 572 | break; |
| 573 | } |
| 574 | } |
| 575 | return dStrdup(itr); |
| 576 | } |
| 577 | |
| 578 | char* dStristr( char* str1, const char* str2 ) |
| 579 | { |