IM_VIPSHOME(3) IM_VIPSHOME(3)
NAME
im_guess_prefix - try to guess install directory
SYNOPSIS
#include <vips/vips.h> const char *im_guess_prefix( const char *argv0, const char *env_name )
DESCRIPTION
im_guess_prefix(3) tries to guess the install directory. You should pass in the value of argv[0] (the name your program was run as) as a clue to help it out, plus the name of the environment variable you let the user override your package install area with (eg. "VIPSHOME"). On success, im_guess_prefix(3) returns the prefix it discovered, and as a side effect, sets the environment variable (if it's not set). im_guess_prefix(3) is useful for programs in the VIPS distribution and contrib which need to be able to find data files. Don't free the return string!
RETURN VALUE
The function returns NULL on failure. 8 March 2001 IM_VIPSHOME(3)
im_guess_prefix 7.14.5 - Generated Sun Sep 7 11:40:18 CDT 2008