* @brief Checks whether a file path is absolute * * @param Path the file path to check * @return BOOLEAN TRUE if the path is absolute, FALSE otherwise */
| 98 | * @return BOOLEAN TRUE if the path is absolute, FALSE otherwise |
| 99 | */ |
| 100 | BOOLEAN |
| 101 | IsAbsolutePath(const char * Path) |
| 102 | { |
| 103 | if (!Path || !Path[0]) |
| 104 | return FALSE; |
| 105 | |
| 106 | if (strlen(Path) >= 3 && |
| 107 | ((Path[1] == ':' && (Path[2] == '\\' || Path[2] == '/')))) |
| 108 | return TRUE; |
| 109 | |
| 110 | return FALSE; |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * @brief Resolves an include file path to a full absolute path |
no outgoing calls
no test coverage detected