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

Function SDL_memmove

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

Source from the content-addressed store, hash-verified

365}
366
367void *
368SDL_memmove(SDL_OUT_BYTECAP(len) void *dst, SDL_IN_BYTECAP(len) const void *src, size_t len)
369{
370#if defined(HAVE_MEMMOVE)
371 return memmove(dst, src, len);
372#else
373 char *srcp = (char *) src;
374 char *dstp = (char *) dst;
375
376 if (src < dst) {
377 srcp += len - 1;
378 dstp += len - 1;
379 while (len--) {
380 *dstp-- = *srcp--;
381 }
382 } else {
383 while (len--) {
384 *dstp++ = *srcp++;
385 }
386 }
387 return dst;
388#endif /* HAVE_MEMMOVE */
389}
390
391int
392SDL_memcmp(const void *s1, const void *s2, size_t len)

Callers 9

unifont_initFunction · 0.85
WatchJoystickFunction · 0.85
SDL_ResampleCVTFunction · 0.85
SDL_IntPrecisionAdjustFunction · 0.85
SDL_PushEventFunction · 0.85
SDL_DelEventWatchFunction · 0.85
SDL_BlitCopyFunction · 0.85
IsJoystickFunction · 0.85

Calls

no outgoing calls

Tested by 2

unifont_initFunction · 0.68
WatchJoystickFunction · 0.68