ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/getlibpath.c
Revision: 2.5
Committed: Thu Jul 17 09:21:29 2003 UTC (20 years, 9 months ago) by schorsch
Content type: text/plain
Branch: MAIN
CVS Tags: rad3R7P2, rad3R7P1, rad4R1, rad4R0, rad3R6, rad3R6P1, rad3R8, rad3R9
Changes since 2.4: +2 -2 lines
Log Message:
Added prototypes and includes from patch by Randolph Fritz.
Added more required includes and reduced other compile warnings.

File Contents

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