freebsd-dev/contrib/ldns/compat/isascii.c
2013-02-15 13:44:18 +00:00

16 lines
225 B
C

/* 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;
}