in src/umocktypes_wcharptr.c [242:279]
int umocktypes_are_equal_const_wcharptr(const wchar_t** left, const wchar_t** right)
{
int result;
/* Codes_SRS_UMOCKTYPES_WCHARPTR_01_024: [ If left and right are equal, umocktypes_are_equal_const_wcharptr shall return 1. ]*/
if (left == right)
{
result = 1;
}
else if ((left == NULL) || (right == NULL))
{
/* Codes_SRS_UMOCKTYPES_WCHARPTR_01_025: [ If only one of the left and right argument is NULL, umocktypes_are_equal_const_wcharptr shall return 0. ] */
result = 0;
}
else
{
/* Codes_SRS_UMOCKTYPES_WCHARPTR_01_026: [ If the string pointed to by left is equal to the string pointed to by right, umocktypes_are_equal_const_wcharptr shall return 1. ]*/
/* Codes_SRS_UMOCKTYPES_WCHARPTR_01_027: [ If the string pointed to by left is different than the string pointed to by right, umocktypes_are_equal_const_wcharptr shall return 0. ]*/
/* Codes_SRS_UMOCKTYPES_WCHARPTR_01_023: [ The comparison shall be case sensitive. ]*/
if (*left == *right)
{
result = 1;
}
else
{
if ((*left == NULL) || (*right == NULL))
{
result = 0;
}
else
{
result = (wcscmp(*left, *right) == 0) ? 1 : 0;
}
}
}
return result;
}