| 760 | } |
| 761 | |
| 762 | static char* |
| 763 | trimLeadingCurrentDir(char *pathname) |
| 764 | { |
| 765 | /* 'union charunion' can do const-cast without compiler warning */ |
| 766 | union charunion { |
| 767 | char *chr; |
| 768 | const char* cchr; |
| 769 | } ptr; |
| 770 | ptr.cchr = trimLeadingCurrentDirConst(pathname); |
| 771 | return ptr.chr; |
| 772 | } |
| 773 | |
| 774 | /* remove leading './' or '/' chars here */ |
| 775 | static const char * trimPath(const char *pathname) |
no test coverage detected