By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,885 Members | 1,072 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,885 IT Pros & Developers. It's quick & easy.

Looking for a C system call to copy files

P: n/a
Avi
Hi,

Is there a UNIX C system command that will let me copy a file?
I am looking for something similar to "cp" that can be called within a
C program.
I know of the "link" system call but this command will set a the
second file as a link to the first file rather than an independent
copy of the first file.
(Windows has the CopyFile command but I didn't find anything that
would work under UNIX)

I am also looking for C commands to move files. Is the C system call
"rename" equivalent to Window's specific MoveFileEx function?

Thanks,
Avner

May 28 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Avi wrote:
Hi,

Is there a UNIX C system command that will let me copy a file?
Please don't multi-post on Usenet. See my reply elsewhere.

--
Ian Collins.
May 28 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.