| Revision: | 2.4 |
| Committed: | Tue May 13 17:58:32 2003 UTC (22 years, 5 months ago) by greg |
| Content type: | text/plain |
| Branch: | MAIN |
| Changes since 2.3: | +1 -1 lines |
| Log Message: | Changed (char *) casts for memory copies to (void *) and other fixes |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | greg | 2.1 | #ifndef lint |
| 2 | greg | 2.2 | static const char RCSid[] = "$Id$"; |
| 3 | greg | 2.1 | #endif |
| 4 | /* | ||
| 5 | * Return Radiance library search path | ||
| 6 | greg | 2.2 | * |
| 7 | * External symbols declared in standard.h | ||
| 8 | */ | ||
| 9 | |||
| 10 | greg | 2.3 | #include "copyright.h" |
| 11 | greg | 2.1 | |
| 12 | #include <stdio.h> | ||
| 13 | |||
| 14 | #include "paths.h" | ||
| 15 | |||
| 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 | } |