MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / strdup

Function strdup

Kernel/src/string.cpp:243–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243char* strdup(const char* s){
244 char* buf = new char[strlen(s) + 1];
245
246 strcpy(buf, s);
247
248 return buf;
249}

Callers 10

FileDialogOnFileOpenedFunction · 0.85
ParseLineFunction · 0.85
RunFunction · 0.85
MenuItemMethod · 0.85
SetExecMethod · 0.85
OnFileOpenedFunction · 0.85
ServiceMethod · 0.85
MessageInterfaceMethod · 0.85
DeviceMethod · 0.85
SetNameMethod · 0.85

Calls 2

strlenFunction · 0.85
strcpyFunction · 0.85

Tested by

no test coverage detected