MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / CopyPathComponent

Function CopyPathComponent

src/filesystem/vfs/vfs.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29auto CopyPathComponent(const char* src, char* dst, size_t dst_size) -> size_t {
30 size_t i = 0;
31 while (*src != '\0' && *src != '/' && i < dst_size - 1) {
32 dst[i++] = *src++;
33 }
34 dst[i] = '\0';
35 return i;
36}
37
38auto FindChild(Dentry* parent, const char* name) -> Dentry* {
39 if (parent == nullptr || name == nullptr) {

Callers 1

LookupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected