safec
2.1
Safe C Library - ISO TR24731 Bounds Checking Interface
|
#include "safeclib_private.h"
#include "safe_str_constraint.h"
#include "safe_str_lib.h"
Go to the source code of this file.
Functions | |
errno_t | strcmpfld_s (const char *dest, rsize_t dmax, const char *src, int *indicator) |
Compares the character array pointed to by src to the character array pointed to by dest for dmax characters. More... | |
errno_t strcmpfld_s | ( | const char * | dest, |
rsize_t | dmax, | ||
const char * | src, | ||
int * | indicator | ||
) |
Compares the character array pointed to by src to the character array pointed to by dest for dmax characters.
The null terminator does not stop the comparison.
[in] | dest | pointer to string to compare against |
[in] | dmax | restricted maximum length of string dest |
[in] | src | pointer to the string to be compared to dest |
[out] | indicator | pointer to result indicator, greater than 0, equal to 0 or less than 0, if the string pointed to by dest is greater than, equal to or less than the string pointed to by src respectively. |
>0 | when dest greater than src |
0 | when strings the same |
<0 | when dest less than src |
EOK | when comparison is complete |
ESNULLP | when dest/src/indicator is NULL pointer |
ESZEROL | when dmax = 0 |
ESLEMAX | when dmax > RSIZE_MAX_STR |
Definition at line 75 of file strcmpfld_s.c.