1 |
greg |
2.1 |
#ifndef lint |
2 |
greg |
2.7 |
static const char RCSid[] = "$Id: getlibpath.c,v 2.6 2013/12/19 16:38:12 greg Exp $"; |
3 |
greg |
2.1 |
#endif |
4 |
|
|
/* |
5 |
|
|
* Return Radiance library search path |
6 |
greg |
2.2 |
* |
7 |
greg |
2.7 |
* External symbols declared in paths.h |
8 |
greg |
2.2 |
*/ |
9 |
|
|
|
10 |
greg |
2.3 |
#include "copyright.h" |
11 |
greg |
2.1 |
|
12 |
|
|
#include <stdio.h> |
13 |
|
|
|
14 |
|
|
#include "paths.h" |
15 |
|
|
|
16 |
|
|
char * |
17 |
greg |
2.4 |
getrlibpath() |
18 |
greg |
2.1 |
{ |
19 |
|
|
static char *libpath = NULL; |
20 |
|
|
|
21 |
|
|
if (libpath == NULL) |
22 |
|
|
if ((libpath = getenv(ULIBVAR)) == NULL) |
23 |
|
|
libpath = DEFPATH; |
24 |
|
|
|
25 |
|
|
return(libpath); |
26 |
|
|
} |