diff options
Diffstat (limited to 'source/include/charset.h')
-rw-r--r-- | source/include/charset.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/include/charset.h b/source/include/charset.h index 7091732223a..14b6ec2020f 100644 --- 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') + +/* 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 |