Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
243
char* strdup(const char* s){
244
char* buf = new char[strlen(s) + 1];
245
246
strcpy(buf, s);
247
248
return buf;
249
}
Callers
10
FileDialogOnFileOpened
Function · 0.85
ParseLine
Function · 0.85
Run
Function · 0.85
MenuItem
Method · 0.85
SetExec
Method · 0.85
OnFileOpened
Function · 0.85
Service
Method · 0.85
MessageInterface
Method · 0.85
Device
Method · 0.85
SetName
Method · 0.85
Calls
2
strlen
Function · 0.85
strcpy
Function · 0.85
Tested by
no test coverage detected