| 87 | } |
| 88 | |
| 89 | static bool path_is_absolute(const char *path) { |
| 90 | if (!path || !path[0]) { |
| 91 | return false; |
| 92 | } |
| 93 | if (path[0] == '/') { |
| 94 | return true; |
| 95 | } |
| 96 | #ifdef _WIN32 |
| 97 | return isalpha((unsigned char)path[0]) && path[1] == ':'; |
| 98 | #else |
| 99 | return false; |
| 100 | #endif |
| 101 | } |
| 102 | |
| 103 | static char *join_root_relative(const char *root, const char *rel) { |
| 104 | if (!root || !root[0]) { |
no outgoing calls
no test coverage detected