# | 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 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |