ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/getlibpath.c
Revision: 2.6
Committed: Thu Dec 19 16:38:12 2013 UTC (10 years, 4 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad5R4, rad5R2, rad4R2P2, rad5R0, rad5R1, rad4R2, rad4R2P1, rad5R3, HEAD
Changes since 2.5: +2 -2 lines
Log Message:
Changed rcalc and icalc to search RAYPATH for input *.cal files

File Contents

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