summaryrefslogtreecommitdiff
path: root/db/clib/isprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'db/clib/isprint.c')
-rw-r--r--db/clib/isprint.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/db/clib/isprint.c b/db/clib/isprint.c
new file mode 100644
index 000000000..481b64772
--- /dev/null
+++ b/db/clib/isprint.c
@@ -0,0 +1,29 @@
+/*-
+ * See the file LICENSE for redistribution information.
+ *
+ * Copyright (c) 2005-2006
+ * Oracle Corporation. All rights reserved.
+ *
+ * $Id: isprint.c,v 1.2 2006/08/24 14:45:10 bostic Exp $
+ */
+
+#include "db_config.h"
+
+#include "db_int.h"
+
+/*
+ * isprint --
+ *
+ * PUBLIC: #ifndef HAVE_ISPRINT
+ * PUBLIC: int isprint __P((int));
+ * PUBLIC: #endif
+ */
+int
+isprint(c)
+ int c;
+{
+ /*
+ * Depends on ASCII character values.
+ */
+ return ((c >= ' ' && c <= '~') ? 1 : 0);
+}