MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDL_memcmp

Function SDL_memcmp

deps/SDL2/src/stdlib/SDL_string.c:391–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391int
392SDL_memcmp(const void *s1, const void *s2, size_t len)
393{
394#if defined(HAVE_MEMCMP)
395 return memcmp(s1, s2, len);
396#else
397 char *s1p = (char *) s1;
398 char *s2p = (char *) s2;
399 while (len--) {
400 if (*s1p != *s2p) {
401 return (*s1p - *s2p);
402 }
403 ++s1p;
404 ++s2p;
405 }
406 return 0;
407#endif /* HAVE_MEMCMP */
408}
409
410size_t
411SDL_strlen(const char *string)

Callers 15

mainFunction · 0.85
BBindingContainsBindingFunction · 0.85
mainFunction · 0.85
WIN_IsEqualGUIDFunction · 0.85
WIN_IsEqualIIDFunction · 0.85
JACK_OpenDeviceFunction · 0.85
WASAPI_PrepDeviceFunction · 0.85
QueueCmdSetViewportFunction · 0.85

Calls

no outgoing calls

Tested by 4

mainFunction · 0.68
BBindingContainsBindingFunction · 0.68
mainFunction · 0.68