1IM_VIPSHOME(3)             Library Functions Manual             IM_VIPSHOME(3)
2
3
4

NAME

6       im_guess_prefix - try to guess install directory
7

SYNOPSIS

9       #include <vips/vips.h>
10
11       const char *im_guess_prefix( const char *argv0, const char *env_name )
12
13

DESCRIPTION

15       im_guess_prefix(3)  tries  to  guess  the install directory. You should
16       pass in the value of argv[0] (the name your program was run as),  as  a
17       clue  to help it out, plus the name of the environment variable you let
18       the user override your package install area with (eg. "VIPSHOME").
19
20       On success, im_guess_prefix(3) returns the prefix it discovered, and as
21       a side effect, sets the environment variable (if it's not set).
22
23       im_guess_prefix(3)  is useful for programs in the VIPS distribution and
24       contrib which need to be able to find data files.
25
26       Don't free the return string!
27
28

RETURN VALUE

30       The function returns NULL on failure.
31
32
33
34                                 8 March 2001                   IM_VIPSHOME(3)
Impressum