summaryrefslogtreecommitdiff
path: root/source3/include/charset.h
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1996-05-04 10:19:55 +0000
committerSamba Release Account <samba-bugs@samba.org>1996-05-04 10:19:55 +0000
commit09960b3d1fb706c821a3bc19b867f6e4a82da81c (patch)
tree7b807b31cf975a75ceeef227820f6b728b741c52 /source3/include/charset.h
parent3a5b9fc23fcbd9fdfd3eb726597b8c5a7ee53382 (diff)
downloadsamba-09960b3d1fb706c821a3bc19b867f6e4a82da81c.tar.gz
samba-09960b3d1fb706c821a3bc19b867f6e4a82da81c.tar.bz2
samba-09960b3d1fb706c821a3bc19b867f6e4a82da81c.zip
added issafe() define for "safe" characters
(This used to be commit 1d7fc598cd56fe6c85b2a75ab7c3cead61fc23ad)
Diffstat (limited to 'source3/include/charset.h')
-rw-r--r--source3/include/charset.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/include/charset.h b/source3/include/charset.h
index 7091732223..14b6ec2020 100644
--- a/source3/include/charset.h
+++ b/source3/include/charset.h
@@ -57,5 +57,9 @@ extern void charset_initialise(void);
#define islower(c) (((char)(c)) != toupper(c))
#define isdoschar(c) (dos_char_map[(char)(c)] != 0)
#define isspace(c) ((c)==' ' || (c) == '\t')
+
+/* this is used to determine if a character is safe to use in
+ something that may be put on a command line */
+#define issafe(c) (isalnum(c) || strchr("-._",c))
#endif