pathname must be valid */
| 752 | |
| 753 | /* pathname must be valid */ |
| 754 | static const char* trimLeadingCurrentDirConst(const char *pathname) |
| 755 | { |
| 756 | assert(pathname != NULL); |
| 757 | if ((pathname[0] == '.') && (pathname[1] == PATH_SEP)) |
| 758 | return pathname + 2; |
| 759 | return pathname; |
| 760 | } |
| 761 | |
| 762 | static char* |
| 763 | trimLeadingCurrentDir(char *pathname) |
no outgoing calls
no test coverage detected