pathname must be valid */
| 743 | |
| 744 | /* pathname must be valid */ |
| 745 | static const char* trimLeadingRootChar(const char *pathname) |
| 746 | { |
| 747 | assert(pathname != NULL); |
| 748 | if (pathname[0] == PATH_SEP) |
| 749 | return pathname + 1; |
| 750 | return pathname; |
| 751 | } |
| 752 | |
| 753 | /* pathname must be valid */ |
| 754 | static const char* trimLeadingCurrentDirConst(const char *pathname) |