MCPcopy Create free account
hub / github.com/WheretIB/nullc / strcmp

Function strcmp

NULLC/includes/string.cpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 return pos ? int(pos - string.ptr) : -1;
20 }
21 int strcmp(NULLCArray a, NULLCArray b)
22 {
23 if(!a.ptr || !b.ptr)
24 {
25 nullcThrowError("strcmp: one of input strings is null");
26 return -1;
27 }
28 return ::strcmp(a.ptr, b.ptr);
29 }
30}
31
32#define REGISTER_FUNC(funcPtr, name, index) if(!nullcBindModuleFunction("std.string", (void(*)())NULLCString::funcPtr, name, index)) return false;

Callers 15

InitInstanceFunction · 0.85
FillVariableInfoTreeFunction · 0.85
ConvertLineToInstructionFunction · 0.85
WndProcFunction · 0.85
TranslateToCMethod · 0.85
TranslateToCMethod · 0.85
OutputCTypeMethod · 0.85
GetOperatorNameMethod · 0.85
LinkCodeMethod · 0.85
MemberByNameFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

nullcThrowErrorFunction · 0.50

Tested by 8

FindVarMethod · 0.68
RunCodeMethod · 0.68
TEST_FOR_FAILFunction · 0.68
TEST_FOR_FAIL_GENERICFunction · 0.68
TEST_FOR_FAIL_FULLFunction · 0.68
RunMethod · 0.68
RunMethod · 0.68
RunMethod · 0.68