summaryrefslogtreecommitdiff
path: root/compat/isascii.c
blob: 8a4ab3743110da9d8d36dde39e9e96966ba05f58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}