MCPcopy Create free account
hub / github.com/ZDoom/Raze / IsAbsPath

Function IsAbsPath

source/common/utility/cmdlib.cpp:950–958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

948//==========================================================================
949
950bool IsAbsPath(const char *name)
951{
952 if (IsSeperator(name[0])) return true;
953#ifdef _WIN32
954 /* [A-Za-z]: (for Windows) */
955 if (isalpha((uint8_t)name[0]) && name[1] == ':') return true;
956#endif /* _WIN32 */
957 return 0;
958}
959
960//==========================================================================
961//

Callers 4

LookupFileMethod · 0.85
AddPathMethod · 0.85
FPatchSetReaderMethod · 0.85
OpenFileMethod · 0.85

Calls 1

IsSeperatorFunction · 0.85

Tested by

no test coverage detected