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