diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-01-29 16:41:28 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-01-29 16:41:28 +0000 |
commit | ea8136cd8e70da00e46ae281f14e089bd920919c (patch) | |
tree | 53deec5da8ef15a67bc81a2c251fb0657eec9d2e /util.h | |
parent | 18d8686647ba6b7ddc5c2cad51b7379148f274f9 (diff) | |
download | wireshark-ea8136cd8e70da00e46ae281f14e089bd920919c.tar.gz wireshark-ea8136cd8e70da00e46ae281f14e089bd920919c.tar.bz2 wireshark-ea8136cd8e70da00e46ae281f14e089bd920919c.zip |
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.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |