freebsd-dev/contrib/ldns/compat/isascii.c

16 lines
225 B
C
Raw Normal View History

2012-07-04 14:22:28 +00:00
/* 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;
}