ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/fropen.c
(Generate patch)

Comparing ray/src/common/fropen.c (file contents):
Revision 2.6 by greg, Thu Apr 14 04:44:45 1994 UTC vs.
Revision 2.14 by greg, Tue Aug 26 04:24:26 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1992 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * Find and open a Radiance library file.
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  
18   FILE *
19 < fropen(fname)                   /* find file and open for reading */
19 > frlibopen(fname)                /* find file and open for reading */
20   register char  *fname;
21   {
20        extern char  *strcpy(), *getlibpath();
22          FILE  *fp;
23 <        char  pname[MAXPATH];
23 >        char  pname[PATH_MAX];
24          register char  *sp, *cp;
25  
26          if (fname == NULL)
# Line 28 | Line 29 | register char  *fname;
29          if (ISDIRSEP(fname[0]) || fname[0] == '.')      /* absolute path */
30                  return(fopen(fname, "r"));
31                                                  /* check search path */
32 <        sp = getlibpath();
32 >        sp = getrlibpath();
33          do {
34                  cp = pname;
35                  while (*sp && (*cp = *sp++) != PATHSEP)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines