Strip the path from the input filename
| 502 | |
| 503 | /// Strip the path from the input filename |
| 504 | char* dStripPath(const char* filename) |
| 505 | { |
| 506 | const char* itr = filename + dStrlen(filename); |
| 507 | while(--itr != filename) { |
| 508 | if (*itr == '/' || *itr == '\\') { |
| 509 | itr++; |
| 510 | break; |
| 511 | } |
| 512 | } |
| 513 | return dStrdup(itr); |
| 514 | } |
| 515 | |
| 516 | char* dStristr( char* str1, const char* str2 ) |
| 517 | { |