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

Function strcmp

Kernel/src/string.cpp:130–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130int strcmp(const char* s1, const char* s2)
131{
132 for (size_t i = 0; ; i++)
133 {
134 if (s1[i] != s2[i])
135 return s1[i] < s2[i] ? -1 : 1;
136 else if (s1[i] == '\0')
137 return 0;
138 }
139}
140
141int strncmp(const char* s1, const char* s2, size_t n)
142{

Callers 15

FileViewMethod · 0.85
RefreshMethod · 0.85
SaveImageFunction · 0.85
ParseLineFunction · 0.85
RunFunction · 0.85
InitializeMenuFunction · 0.85
FindDirMethod · 0.85
InitCoreFunction · 0.85
SysOpenFunction · 0.85
ResolveServiceNameMethod · 0.85
CreateInterfaceMethod · 0.85
ResolveInterfaceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected