fd_move.c (176B)
1 #include <unistd.h> 2 #include "fd.h" 3 4 int fd_move(to,from) 5 int to; 6 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 }
nightmaremailUnnamed repository; edit this file 'description' to name the repository. | |
Log | Files | Refs |