Low Level I/O
Hey guys, I've got an assignment I'm working on which consist on a function with prototype
This function will be passed two consecutive strings separated by a null character (the names of the directories) and will copy all files in the first directory into the second. These two directories are assumed already existent. I know how to open files for read/write and how to copy one to another once I have the file descriptors, and I've already parsed the directory names. I guess what I'm asking is how i go about getting each files fd in directory one.
void *copydirectoy(void *arg);
You'll have to read the directory to get the file names, skipping files with names . and ..
O right opendir, closedir, and readdir to open a directory duh... thnx