diff options
Diffstat (limited to 'contrib/ldns/compat/isascii.c')
-rw-r--r-- | contrib/ldns/compat/isascii.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/ldns/compat/isascii.c b/contrib/ldns/compat/isascii.c new file mode 100644 index 0000000..8a4ab37 --- /dev/null +++ b/contrib/ldns/compat/isascii.c @@ -0,0 +1,15 @@ +/* Just a replacement, if the original isascii is not + present */ + +#if HAVE_CONFIG_H +#include <ldns/config.h> +#endif + +int isascii(int c); + +/* true if character is ascii. */ +int +isascii(int c) +{ + return c >= 0 && c < 128; +} |