1/* rename.c -- file renaming routine for systems without rename(2)
2 *
3 * Written by reading the System V Interface Definition, not the code.
4 *
5 * Totally public domain.  (Author unknown)
6 *
7 */
8
9int rename(from,to)
10register char *from, *to;
11{
12    (void) unlink(to);
13    if (link(from, to) < 0)
14	return(-1);
15
16    (void) unlink(from);
17    return(0);
18}
19
20
21