| Revision: | 2.6 |
| Committed: | Thu Dec 19 16:38:12 2013 UTC (11 years, 10 months ago) by greg |
| Content type: | text/plain |
| Branch: | MAIN |
| CVS Tags: | rad5R4, rad5R3, rad5R2, rad5R1, rad5R0, rad4R2P2, rad4R2P1, rad4R2 |
| Changes since 2.5: | +2 -2 lines |
| Log Message: | Changed rcalc and icalc to search RAYPATH for input *.cal files |
| # | Content |
|---|---|
| 1 | #ifndef lint |
| 2 | static const char RCSid[] = "$Id: getlibpath.c,v 2.5 2003/07/17 09:21:29 schorsch Exp $"; |
| 3 | #endif |
| 4 | /* |
| 5 | * Return Radiance library search path |
| 6 | * |
| 7 | * External symbols declared in rtio.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 | } |