From: Samba Release Account Date: Sat, 4 May 1996 10:19:55 +0000 (+0000) Subject: added issafe() define for "safe" characters X-Git-Tag: samba-4.0.0alpha6~801^2~23566 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=09960b3d1fb706c821a3bc19b867f6e4a82da81c;ds=sidebyside added issafe() define for "safe" characters (This used to be commit 1d7fc598cd56fe6c85b2a75ab7c3cead61fc23ad) --- diff --git a/source3/include/charset.h b/source3/include/charset.h index 7091732223a..14b6ec2020f 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