summaryrefslogtreecommitdiffstats
path: root/contrib/ldns/compat/isblank.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ldns/compat/isblank.c')
-rw-r--r--contrib/ldns/compat/isblank.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/ldns/compat/isblank.c b/contrib/ldns/compat/isblank.c
new file mode 100644
index 0000000..3b38154
--- /dev/null
+++ b/contrib/ldns/compat/isblank.c
@@ -0,0 +1,15 @@
+/* Just a replacement, if the original isblank is not
+ present */
+
+#if HAVE_CONFIG_H
+#include <ldns/config.h>
+#endif
+
+int isblank(int c);
+
+/* true if character is a blank (space or tab). C99. */
+int
+isblank(int c)
+{
+ return (c == ' ') || (c == '\t');
+}
OpenPOWER on IntegriCloud