|
C File Manipulation in Linux
I need c commands which can do the same as:
{mv,cp} {,-i}
mkdir -p
Currently I'm using system() but it gets very complicated with string separation and stuff. I figured I could do cp by opening the file, reading all its contents and writing it into the destination file (but I'd still need a delete command to do mv), but I have no idea how to do mkdir (I could do the -p activity if I new how to create directories.
Thanks
|