summaryrefslogtreecommitdiffstats
path: root/source/lib/util.c
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2000-02-07 16:22:16 +0000
committerJean-François Micouleau <jfm@samba.org>2000-02-07 16:22:16 +0000
commitb81dc7b7f832cae2e66076398a134fbb6c1f78ca (patch)
tree7651c119720fd5cb3dbb09326563f440a04256b3 /source/lib/util.c
parentbd9d4cdde9193c120c6f4e8cf72f87cd67a9387e (diff)
downloadsamba-b81dc7b7f832cae2e66076398a134fbb6c1f78ca.tar.gz
samba-b81dc7b7f832cae2e66076398a134fbb6c1f78ca.tar.xz
samba-b81dc7b7f832cae2e66076398a134fbb6c1f78ca.zip
Jeremy can you check lib/util_unistr.c for codepages support ?
I added 2 UNICODE <-> ASCII functions which _don't_ honor codepage support. J.F.
Diffstat (limited to 'source/lib/util.c')
-rw-r--r--source/lib/util.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index 71f440eae52..a824887e88b 100644
--- a/source/lib/util.c
+++ b/source/lib/util.c
@@ -1662,6 +1662,18 @@ void *Realloc(void *p,size_t size)
/****************************************************************************
+free memory, checks for NULL
+****************************************************************************/
+void safe_free(void *p)
+{
+ if (p != NULL)
+ {
+ free(p);
+ }
+}
+
+
+/****************************************************************************
get my own name and IP
****************************************************************************/
BOOL get_myname(char *my_name)