fd_move.c (188B)
1 /* Public domain. */ 2 3 #include <unistd.h> 4 #include "fd.h" 5 6 int fd_move(int to,int from) 7 { 8 if (to == from) return 0; 9 if (fd_copy(to,from) == -1) return -1; 10 close(from); 11 return 0; 12 }
runitUnnamed repository; edit this file 'description' to name the repository. | |
Log | Files | Refs | README |