logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

getudprefix - return installation prefix of Unidata software

Description

       This  function  returns  the  pathname  of  the directory off of which most Unidata-supported software is
       installed.  Thus, it may be used during program execution to help form needed pathnames.  For example:

           #include <string.h>
           extern const char *getudprefix(void);
           char              pathbuf[256];
           ...
               (void)strcat(strcpy(pathbuf, getudprefix()),
                             "/etc/udunits.dat");

       The function returns the value of the environment variable UDPREFIX, if it exists; otherwise,  the  value
       of  the  environment variable UDHOME is returned, if it exists; otherwise, the home directory of the user
       database entry returned by `getuduser()'isused,ifitexists;otherwise,theemptystring("")isreturned.

Environment

       UDPREFIX   Contains the pathname of the root of the installed, Unidata software.

       UDHOME     Contains the pathname of the home directory of the Unidata user.

Name

       getudprefix - return installation prefix of Unidata software

See Also

getuduser(3).

Printed: 125.7.29                         $Date: 2000/08/07 23:15:03 $                            GETUDPREFIX(3)

Synopsis

constchar*getudprefix(void);

See Also