summaryrefslogtreecommitdiff
path: root/source3/lib/util_str.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-08-16 00:25:48 +0000
committerTim Potter <tpot@samba.org>2002-08-16 00:25:48 +0000
commit88d321becdcff10f52a629946fb300d158fcc2fa (patch)
tree520edef8ca504853959f756e086dc0cd80044291 /source3/lib/util_str.c
parent298f956eaf7cbd362be8494f315a49d126a2c0ea (diff)
downloadsamba-88d321becdcff10f52a629946fb300d158fcc2fa.tar.gz
samba-88d321becdcff10f52a629946fb300d158fcc2fa.tar.bz2
samba-88d321becdcff10f52a629946fb300d158fcc2fa.zip
Merge of netbios namecache code from APPLIANCE_HEAD.
Tridge suggested a generic caching mechanism for Samba to avoid the proliferation of little cache files hanging around limpet like in the locks directory. Someone should probably implement this at some stage. (This used to be commit dad31483b3bd1790356ef1e40ac62624a403bce8)
Diffstat (limited to 'source3/lib/util_str.c')
-rw-r--r--source3/lib/util_str.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 9dc80c89db..3b5ceb2217 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -212,6 +212,18 @@ int strwicmp(const char *psz1, const char *psz2)
}
+/* Convert a string to upper case, but don't modify it */
+
+char *strupper_static(char *s)
+{
+ static pstring str;
+
+ pstrcpy(str, s);
+ strupper(str);
+
+ return str;
+}
+
/*******************************************************************
convert a string to "normal" form
********************************************************************/