aboutsummaryrefslogtreecommitdiffstats
path: root/epan/filesystem.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-04-02 09:53:46 +0000
committerGuy Harris <guy@alum.mit.edu>2001-04-02 09:53:46 +0000
commit65dc46932669c4fb95360156a863294f51963fa8 (patch)
tree58d2550d39940bee832d3438d649188b1294cd58 /epan/filesystem.h
parentd203637adecc1783ce9705a33e7af6e88778f5e2 (diff)
"get_home_dir()", in "epan/filesystem.c", uses
"find_last_pathname_separator()" on Win32; move the other pathname manipulation routines from "util.c" into "epan/filesystem.c". Remove from "util.h" the declarations of routines not defined in "util.c", and put them into "epan/filesystem.h" if they're not already there. Adjust #includes to make the above work. svn path=/trunk/; revision=3241
Diffstat (limited to 'epan/filesystem.h')
-rw-r--r--epan/filesystem.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/epan/filesystem.h b/epan/filesystem.h
index 8c0455549c..129bc02455 100644
--- a/epan/filesystem.h
+++ b/epan/filesystem.h
@@ -1,7 +1,7 @@
/* filesystem.h
* Filesystem utility definitions
*
- * $Id: filesystem.h,v 1.2 2000/12/22 22:26:19 nneul Exp $
+ * $Id: filesystem.h,v 1.3 2001/04/02 09:53:44 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -26,6 +26,25 @@
#ifndef FILESYSTEM_H
#define FILESYSTEM_H
+/*
+ * Given a pathname, return a pointer to the last pathname separator
+ * character in the pathname, or NULL if the pathname contains no
+ * separators.
+ */
+char *find_last_pathname_separator(char *);
+
+/*
+ * Given a pathname, return the last component.
+ */
+char *get_basename(char *);
+
+/*
+ * Given a pathname, return a string containing everything but the
+ * last component. NOTE: this overwrites the pathname handed into
+ * it....
+ */
+char *get_dirname(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);