summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/util.h b/util.h
index f48be86a3d..6bea55f116 100644
--- a/util.h
+++ b/util.h
@@ -1,7 +1,7 @@
/* util.h
* Utility definitions
*
- * $Id: util.h,v 1.16 2000/01/25 04:31:17 guy Exp $
+ * $Id: util.h,v 1.17 2000/01/25 05:48:39 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -30,8 +30,18 @@
extern "C" {
#endif /* __cplusplus */
+/*
+ * 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 *);
+
int create_tempfile(char *, int, const char *);
void ASCII_to_EBCDIC(guint8 *buf, guint bytes);