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

Comparing ray/src/common/getpath.c (file contents):
Revision 2.6 by greg, Tue Sep 8 10:04:34 1992 UTC vs.
Revision 2.7 by greg, Mon Sep 21 11:59:42 1992 UTC

# Line 8 | Line 8 | static char SCCSid[] = "$SunId$ LBL";
8   *  getpath.c - function to search for file in a list of directories
9   */
10  
11 + #include  "standard.h"
12 +
13   #include  "paths.h"
14  
15 < #define  NULL           0
14 <
15 < #ifndef  NIX
15 > #ifndef  NIX
16   #include  <pwd.h>
17   extern struct passwd  *getpwnam();
18   #endif
19  
20 extern char  *strcpy(), *strcat(), *getenv();
20  
22
21   char *
22   getpath(fname, searchpath, mode)        /* expand fname, return full path */
23   register char  *fname;
24   register char  *searchpath;
25   int  mode;
26   {
27 < #ifndef  NIX
27 > #ifndef  NIX
28          struct passwd  *pwent;
29   #endif
30          static char  pname[MAXPATH];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines