MCPcopy Create free account
hub / github.com/ConEmu/ConEmu / CompareStringPointers

Function CompareStringPointers

src/common/MStrSafe.cpp:600–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598}
599
600static int CompareStringPointers(const void* asStr1, const void* asStr2)
601{
602 if (asStr1 == nullptr && asStr2)
603 return -1; // str1 is lesser than str2
604 if (asStr1 && asStr2 == nullptr)
605 return 1; // str1 is greater than str2
606 return 0;
607}
608
609// ReSharper disable once CppInconsistentNaming
610int lstrcmpni(LPCSTR asStr1, LPCSTR asStr2, int cchMax)

Callers 1

lstrcmpniFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected