X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/ac9fec2d5b174859ffdc65bd96559286c94d95fa..996e3b68887ea620beecb8feaa2b50ed14db5a3a:/src/internal.h diff --git a/src/internal.h b/src/internal.h index 9e442fe..4fc7d7f 100644 --- a/src/internal.h +++ b/src/internal.h @@ -683,6 +683,9 @@ static inline int ctype_alpha(int c) { return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'); } static inline int ctype_822special(int c) { return strchr("()<>@,;:\\\".[]",c) != 0; } +static inline int ctype_domainunquoted(int c) { + return ctype_alpha(c) || ctype_digit(c) || (strchr("-_/+",c) != 0); +} static inline int errno_resources(int e) { return e==ENOMEM || e==ENOBUFS; }