| 97 | } |
| 98 | |
| 99 | static bool path_is_absolute(const char *path) { |
| 100 | if (!path || !path[0]) { |
| 101 | return false; |
| 102 | } |
| 103 | if (path[0] == '/') { |
| 104 | return true; |
| 105 | } |
| 106 | #ifdef _WIN32 |
| 107 | return isalpha((unsigned char)path[0]) && path[1] == ':'; |
| 108 | #else |
| 109 | return false; |
| 110 | #endif |
| 111 | } |
| 112 | |
| 113 | static char *join_root_relative(const char *root, const char *rel) { |
| 114 | if (!root || !root[0]) { |
no outgoing calls
no test coverage detected