ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/getlibpath.c
Revision: 2.7
Committed: Sat Jun 7 05:09:45 2025 UTC (14 hours, 4 minutes ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 2.6: +2 -3 lines
Log Message:
refactor: Put some declarations into "paths.h" and included in "platform.h"

File Contents

# User Rev Content
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     }