Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal util.c util.h

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 24 Jan 2000 23:48:43 -0600 (CST)
guy         2000/01/24 23:48:41 CST

  Modified files:
    .                    util.c util.h 
  Log:
  Provide a "get_dirname()" routine, that takes a pathname and returns
  either a pointer to the directory part of the pathname (after stomping
  on the pathname separator with a '\0', so don't use this on pathnames
  you plan to use afterwards), or NULL if the pathname contains no
  directory part, and make it handle Win32 pathnames on Win32 systems.
  
  Use it to get the containing directory of the currently open file, so
  that the "chdir()" stuff we do to cause the "File:Open" dialog box to
  show you files in the directory in which you last looked works on Win32
  systems.
  
  Revision  Changes    Path
  1.29      +54 -8     ethereal/util.c
  1.17      +11 -1     ethereal/util.h