Provide a "get_dirname()" routine, that takes a pathname and returns
authorGuy Harris <guy@alum.mit.edu>
Tue, 25 Jan 2000 05:48:47 +0000 (05:48 -0000)
committerGuy Harris <guy@alum.mit.edu>
Tue, 25 Jan 2000 05:48:47 +0000 (05:48 -0000)
commitd1aac3e35f7e2d1430a198f8c41a5bed7ac3b3a7
treeb81626683b8737b43718d8b234fcbc1cf300ba5b
parentf71823a907ee22663dd666a0733c068f5475e69e
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.

svn path=/trunk/; revision=1555
gtk/file_dlg.c
gtk/main.c
util.c
util.h