safec
3.0
Safe C Library - ISO TR24731 Bounds Checking Interface
|
#include "safe_str_lib.h"
Functions | |
EXPORT errno_t | wcscmp_s (const wchar_t *restrict dest, rsize_t dmax, const wchar_t *restrict src, rsize_t smax, int *diff) |
Compares wide string src to wide string dest. More... | |
EXPORT errno_t wcscmp_s | ( | const wchar_t *restrict | dest, |
rsize_t | dmax, | ||
const wchar_t *restrict | src, | ||
rsize_t | smax, | ||
int * | diff | ||
) |
Compares wide string src to wide string dest.
[in] | dest | wide string to compare against |
[in] | dmax | restricted maximum length of wide string dest |
[in] | src | wide string to be compared to dest |
[in] | smax | restricted maximum length of wide string src |
[out] | diff | pointer to result diff, greater than 0, equal to 0 or less than 0, if the dest is greater than, equal to or less than src respectively. |
EOK | when comparison is complete |
ESNULLP | when dest/src/diff is NULL pointer |
ESZEROL | when dmax/smax = 0 |
ESLEMAX | when dmax/smax > RSIZE_MAX_WSTR |