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

Comparing ray/src/common/mktemp.c (file contents):
Revision 2.1 by greg, Mon Oct 5 11:38:00 1992 UTC vs.
Revision 2.2 by greg, Tue Nov 24 16:29:46 1992 UTC

# Line 8 | Line 8 | static char SCCSid[] = "$SunId$ LBL";
8   * Replacement mktemp(3) function for systems without
9   */
10  
11 < #include "standard.h"
11 > #define  NULL           0
12  
13  
14   char *
# Line 35 | Line 35 | char   *template;
35          }
36          p = te-1;                       /* final character */
37          for (*p = 'a'; *p <= 'z'; (*p)++)
38 <                if (access(template, F_OK) == -1)
38 >                if (access(template, 0) == -1)
39                          return(template);       /* found unique name */
40          return(NULL);                   /* failure! */
41   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines