Re: Utility functions from gnome-libs



On Tue, Jul 04, 2000 at 06:52:28AM +0200, Tim Janik wrote:
> On 3 Jul 2000, Owen Taylor wrote:
> 
> > /* locate a program in $PATH, or return NULL if not found */
> > char *gnome_is_program_in_path (const gchar *program);
> > This would be renamed to g_is_program_in_path()
> 
> rather i'd call it g_find_program_in_path() since it
> 1) doesn't return a gboolean but a string
> 2) it can take quite some time to do all the path searching

It would also be handy to have a more general version -- something like

  char *g_find_file_in_path(const char *filename, const char *path);

for finding configuration files and searching MANPATH, MAILPATH, and
the like.

-- John Kodis.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]