SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
Functions
memcmp.c File Reference
#include <io.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <types.h>
Include dependency graph for memcmp.c:

Functions

int memcmp (const void *s1, const void *s2, unsigned int n)
 Compares the first 'cnt' bytes of the memory areas 'dst' and 'src'.
 

Function Documentation

◆ memcmp()

int memcmp ( const void *  dst,
const void *  src,
unsigned int  cnt 
)

Compares the first 'cnt' bytes of the memory areas 'dst' and 'src'.

Parameters
dstThe first memory area to compare.
srcThe second memory area to compare.
cntThe number of bytes to compare.
Returns
An integer less than, equal to, or greater than zero if 'dst' is found, respectively, to be less than, to match, or be greater than 'src'.