git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2b12650
)
added issafe() define for "safe" characters
author
Samba Release Account
<samba-bugs@samba.org>
Sat, 4 May 1996 10:19:55 +0000
(10:19 +0000)
committer
Samba Release Account
<samba-bugs@samba.org>
Sat, 4 May 1996 10:19:55 +0000
(10:19 +0000)
source/include/charset.h
patch
|
blob
|
history
diff --git
a/source/include/charset.h
b/source/include/charset.h
index 7091732223a4587333949e4534939f5fa39012ff..14b6ec2020f66604505b0b06fdce3c495963e78d 100644
(file)
--- a/
source/include/charset.h
+++ b/
source/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')
#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
#endif