/* Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "dns-util.h"
/**
return first position from b->a of c or a if not found
*/
static inline
const char *strchr_ba(const char *a, const char *b, char c)
{
for(;b>a && *b != c; b--);
return b;
}
{
for(size_t i = 0; i < n &&
*a != '\0' &&
*b != '\0' &&
dns_tolower(*a) == dns_tolower(*b);
i++, a++, b++);
return dns_tolower(*a) - dns_tolower(*b);
}
int dns_compare(const char *a, const char *b)
{
}
int dns_compare_labels(const char *a, const char *b)
{
int comp = 0;
/* look for start of label, including dot */
/* compare labels up to minimum length
but include \0 to make sure that we
don't consider alpha and alphabet
equal */
}
}
{
switch(*mask) {
case '*':
mask++;
break;
case '?':
break;
default:
}
}
}