safec
2.1
Safe C Library - ISO TR24731 Bounds Checking Interface
|
#include "safeclib_private.h"
#include "safe_mem_constraint.h"
#include "safe_mem_lib.h"
Go to the source code of this file.
Functions | |
errno_t | memcmp32_s (const uint32_t *dest, rsize_t dmax, const uint32_t *src, rsize_t smax, int *diff) |
Compares memory until they differ, and their difference is returned in diff. More... | |
errno_t memcmp32_s | ( | const uint32_t * | dest, |
rsize_t | dmax, | ||
const uint32_t * | src, | ||
rsize_t | smax, | ||
int * | diff | ||
) |
Compares memory until they differ, and their difference is returned in diff.
If the block of memory is the same, diff=0.
dest | pointer to memory to compare against |
src | pointer to the source memory to compare with dest |
dmax | maximum length of dest, in bytess |
smax | length of the source memory block |
*diff | pointer to the diff which is an integer greater than, equal to or less than zero according to whether the object pointed to by dest is greater than, equal to or less than the object pointed to by src. |
EOK | when operation is successful |
ESNULLP | when dst/src is NULL POINTER |
ESZEROL | when dmax/smax = ZERO |
ESLEMAX | when dmax/smax > RSIZE_MAX_MEM |
ESNOSPC | when dmax < smax |
Definition at line 72 of file memcmp32_s.c.