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 commit is contained in:
parent
2b126502f4
commit
1d7fc598cd
@ -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