logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_memcmp - Compare two buffers of memory.

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                                      SDL_memcmp(3)

Function Parameters

s1     the first buffer to compare. NULL is not permitted!

       s2     the second buffer to compare. NULL is not permitted!

       len    the number of bytes to compare between the buffers.

Header File

       Defined in SDL3/SDL_stdinc.h

Name

       SDL_memcmp - Compare two buffers of memory.

Return Value

       Returns less than zero if s1 is "less than" s2, greater than zero if s1 is "greater than" s2, and zero if
       the buffers match exactly for len bytes.

Synopsis

#include"SDL3/SDL.h"intSDL_memcmp(constvoid*s1,constvoid*s2,size_tlen);

Thread Safety

       It is safe to call this function from any thread.

See Also