aboutsummaryrefslogtreecommitdiffstats
path: root/common/isascii.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-01-09 12:59:25 +0000
committerWerner Koch <[email protected]>2003-01-09 12:59:25 +0000
commitc13b76ca6a495cda6e51934a7788f48ca6f3bb0e (patch)
treed52174e8d500d7db90181bf71624d69d0c6836c5 /common/isascii.c
parent* keygen.c (keygen_set_std_prefs): Warn when setting an IDEA preference (diff)
downloadgnupg-c13b76ca6a495cda6e51934a7788f48ca6f3bb0e.tar.gz
gnupg-c13b76ca6a495cda6e51934a7788f48ca6f3bb0e.zip
Updated from latest NewPG project
Diffstat (limited to '')
-rw-r--r--common/isascii.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/common/isascii.c b/common/isascii.c
new file mode 100644
index 000000000..565c71664
--- /dev/null
+++ b/common/isascii.c
@@ -0,0 +1,29 @@
+/* isascii.c - Replacement for isascii.
+ * Copyright (C) 2002 Free Software Foundation, Inc.
+ *
+ * This file is part of GnuPG.
+ *
+ * GnuPG is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GnuPG is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+int
+isascii (int c)
+{
+ return (((c) & ~0x7f) == 0);
+}