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

Function strncpy

Kernel/src/string.cpp:113–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void strncpy(char* dest, const char* src, size_t n)
114{
115 size_t i = 0;
116 for(; src[i] != '\0' && i < n; i++)
117 {
118 dest[i] = src[i];
119 }
120 dest[i] = '\0';
121}
122
123size_t strlen(const char* str)
124{

Callers 15

DoAnsiSGRFunction · 0.85
DoAnsiSGRFunction · 0.85
strncatFunction · 0.85
VerifyELFFunction · 0.85
LoadELFSegmentsFunction · 0.85
SysExecFunction · 0.85
SysCreateServiceFunction · 0.85
SysCreateInterfaceFunction · 0.85
SysInterfaceConnectFunction · 0.85
ResolveSocketAddressFunction · 0.85
BindSocketFunction · 0.85
ReadDirMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected