Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/gtk file_dlg.c main.c

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:59 -0600 (CST)
guy         2000/01/24 23:48:54 CST

  Modified files:
    gtk                  file_dlg.c main.c 
  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.18      +38 -16    ethereal/gtk/file_dlg.c
  1.97      +8 -6      ethereal/gtk/main.c