Displaying 2 results from an estimated 2 matches for "str_lower".
2002 Jun 10
1
smbmount filename case forcing
Hello
I have a problem mounting a win2k share onto linux
I want to mount the share so that all filenames are in lowercase (or
uppercase) only
This is so that I can use apache with a DirectoryIndex of default.htm
instead of all the possible cases. And various other places I plan to
use filenames
Is playing with codepages / iocharsets the way to go ?
TIA
Neil Prockter
2000 Jun 28
1
[Patch] Shorter patch for smbfs 2.2.16
...t
smb_sb_info *server);
+static void
+str_upper(char *name, int len)
+{
+ while (len--)
+ {
+ if (*name >= 'a' && *name <= 'z')
+ *name -= ('a' - 'A');
+ name++;
+ }
+}
+
+static void
+str_lower(char *name, int len)
+{
+ while (len--)
+ {
+ if (*name >= 'A' && *name <= 'Z')
+ *name += ('a' - 'A');
+ name++;
+ }
+}
+
/* reverse a string inline. This is used by the dircache walk...