MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / WindowsPath_isDriveAbsolute

Function WindowsPath_isDriveAbsolute

Tools/ToolsBootstrap.c:66–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64
65static int WindowsPath_isUNC(const wchar_t* data, int length) {
66 return length >= 5 && data[0] == L'\\' && data[1] == L'\\' &&
67 WindowsPath_hasUNCServerAndShare(data + 2, length - 2);
68}
69
70static int WindowsPath_isDriveAbsolute(const wchar_t* data, int length) {
71 return length >= 3 && WindowsPath_isDriveLetter(data[0]) && data[1] == L':' && data[2] == L'\\';

Callers 1

Calls 1

Tested by

no test coverage detected