MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / Basename

Function Basename

rEFIt_UEFI/refit/lib.cpp:1556–1573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1554
1555
1556CONST CHAR16 * Basename(IN CONST CHAR16 *Path)
1557{
1558 CONST CHAR16 *FileName;
1559 UINTN i;
1560
1561 FileName = Path;
1562
1563 if (Path != NULL) {
1564 for (i = StrLen(Path); i > 0; i--) {
1565 if (Path[i-1] == '\\' || Path[i-1] == '/') {
1566 FileName = Path + i;
1567 break;
1568 }
1569 }
1570 }
1571
1572 return FileName;
1573}
1574
1575VOID ReplaceExtension(IN OUT CHAR16 *Path, IN CHAR16 *Extension)
1576{

Callers 7

StartLoaderMethod · 0.85
StartToolMethod · 0.85
RefitMainFunction · 0.85
SetBootCurrentFunction · 0.85
loader.cppFile · 0.85
LinuxScanFunction · 0.85
AddCustomEntryFunction · 0.85

Calls 1

StrLenFunction · 0.50

Tested by

no test coverage detected