mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
added issafe() define for "safe" characters
(This used to be commit 1d7fc598cd
)
This commit is contained in:
parent
3a5b9fc23f
commit
09960b3d1f
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user