MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / Strncasecmp

Function Strncasecmp

src/OpenColorIO/Platform.cpp:169–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169int Strncasecmp(const char * str1, const char * str2, size_t n)
170{
171 if (!str1 || !str2)
172 {
173 throw Exception("String pointer for comparison must not be null.");
174 }
175
176#ifdef _WIN32
177 return ::_strnicmp(str1, str2, n);
178#else
179 return ::strncasecmp(str1, str2, n);
180#endif
181}
182
183void * AlignedMalloc(size_t size, size_t alignment)
184{

Callers 1

OCIO_ADD_TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

OCIO_ADD_TESTFunction · 0.68