ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/getlibpath.c
Revision: 2.1
Committed: Thu Apr 14 04:43:53 1994 UTC (30 years ago) by greg
Content type: text/plain
Branch: MAIN
Log Message:
Initial revision

File Contents

# User Rev Content
1 greg 2.1 /* Copyright (c) 1994 Regents of the University of California */
2    
3     #ifndef lint
4     static char SCCSid[] = "$SunId$ LBL";
5     #endif
6    
7     /*
8     * Return Radiance library search path
9     */
10    
11     #include <stdio.h>
12    
13     #include "paths.h"
14    
15    
16     char *
17     getlibpath()
18     {
19     static char *libpath = NULL;
20    
21     if (libpath == NULL)
22     if ((libpath = getenv(ULIBVAR)) == NULL)
23     libpath = DEFPATH;
24    
25     return(libpath);
26     }