diff -r 000000000000 -r 068428edee47 fd_move.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fd_move.c Fri Oct 19 14:06:22 2007 +0200 @@ -0,0 +1,11 @@ +#include "fd.h" + +int fd_move(to,from) +int to; +int from; +{ + if (to == from) return 0; + if (fd_copy(to,from) == -1) return -1; + close(from); + return 0; +}