summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2000-01-29 16:41:28 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2000-01-29 16:41:28 +0000
commitea8136cd8e70da00e46ae281f14e089bd920919c (patch)
tree53deec5da8ef15a67bc81a2c251fb0657eec9d2e /util.h
parent18d8686647ba6b7ddc5c2cad51b7379148f274f9 (diff)
downloadwireshark-ea8136cd8e70da00e46ae281f14e089bd920919c.tar.gz
Remove instances of getenv("HOME") and provide a get_home_dir() function
which provides a default value if "HOME" is not set. svn path=/trunk/; revision=1579
Diffstat (limited to 'util.h')
-rw-r--r--util.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/util.h b/util.h
index 6bea55f116..d292e131ee 100644
--- a/util.h
+++ b/util.h
@@ -1,7 +1,7 @@
/* util.h
* Utility definitions
*
- * $Id: util.h,v 1.17 2000/01/25 05:48:39 guy Exp $
+ * $Id: util.h,v 1.18 2000/01/29 16:41:15 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -44,6 +44,10 @@ char *get_dirname(char *);
int create_tempfile(char *, int, const char *);
+/* Returns the user's home directory, via the HOME environment
+ * variable, or a default directory if HOME is not set */
+const char* get_home_dir(void);
+
void ASCII_to_EBCDIC(guint8 *buf, guint bytes);
guint8 ASCII_to_EBCDIC1(guint8 c);
void EBCDIC_to_ASCII(guint8 *buf, guint bytes);