Utah Raster Toolkit
9999-git
URT Development version (post-3.1b)
Main Page
Data Structures
Files
File List
Globals
get
getami
mktemp.c
Go to the documentation of this file.
1
#
include
<
string
.
h
>
2
#
ifdef
LATTICE
3
#
include
<
proto
/
exec
.
h
>
4
#
endif
5
6
char
*
7
mktemp
(
char
*buf)
8
{
9
long
pid = (
long
)FindTask(0L);
10
char
*c;
11
12
c = buf + strlen(buf);
13
14
while
(*--c ==
'X'
) {
15
*c = pid % 10 +
'0'
;
16
pid /= 10;
17
}
18
c++;
19
if
(*c) {
20
for
(*c=
'A'
; *c <=
'Z'
; (*c)++) {
21
if
(access(buf, 0)) {
22
return
buf;
23
}
24
}
25
*c = 0;
26
return
buf;
27
}
else
{
28
return
buf;
29
}
30
}
mktemp
char * mktemp(char *)
Definition:
mktemp.c:7
Generated on Thu Sep 24 2015 11:47:01 for Utah Raster Toolkit by
1.8.10