468,290 Members | 2,019 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,290 developers. It's quick & easy.

Looking for a C system call to copy files

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
1 3505
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.

Similar topics

9 posts views Thread by Penn Markham | last post: by
8 posts views Thread by gumi | last post: by
5 posts views Thread by Twig | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.