MCPcopy Create free account
hub / github.com/HyperDbg/HyperDbg / IsAbsolutePath

Function IsAbsolutePath

hyperdbg/script-engine/code/script_include.c:100–111  ·  view source on GitHub ↗

* @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 */

Source from the content-addressed store, hash-verified

98 * @return BOOLEAN TRUE if the path is absolute, FALSE otherwise
99 */
100BOOLEAN
101IsAbsolutePath(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

Callers 1

ResolveIncludePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected