| Revision: | 2.7 | 
| Committed: | Sat Jun 7 05:09:45 2025 UTC (4 months, 4 weeks ago) by greg | 
| Content type: | text/plain | 
| Branch: | MAIN | 
| CVS Tags: | rad6R0, HEAD | 
| Changes since 2.6: | +2 -3 lines | 
| Log Message: | refactor: Put some declarations into "paths.h" and included in "platform.h"  | 
| # | Content | 
|---|---|
| 1 | #ifndef lint | 
| 2 | static const char RCSid[] = "$Id: getlibpath.c,v 2.6 2013/12/19 16:38:12 greg Exp $"; | 
| 3 | #endif | 
| 4 | /* | 
| 5 | * Return Radiance library search path | 
| 6 | * | 
| 7 | * External symbols declared in paths.h | 
| 8 | */ | 
| 9 | |
| 10 | #include "copyright.h" | 
| 11 | |
| 12 | #include <stdio.h> | 
| 13 | |
| 14 | #include "paths.h" | 
| 15 | |
| 16 | char * | 
| 17 | getrlibpath() | 
| 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 | } |