2 Proprietary Rand Corporation
, 1981.
3 Further distribution of
this software
4 subject to the terms of the Rand
8 makename(prefix
,suffix
)
11 static char tmpname
[15];
12 register char *cp1
, *cp2
;
17 for (cp2
= prefix
; *cp1
++ = *cp2
++; );
19 do *cp1
++ = pid%10
+ '0'; while (pid
=/ 10);
20 for (cp2
= suffix
; *cp1
++ = *cp2
++; );
21 if (cp1
> &tmpname
+ 1) error("strs too long to makename");