<HEAD> <TITLE> cp - copy a file </TITLE> </HEAD> <BODY BACKGROUND=http://www.imaginary.com/~beek/gifs/bg.jpg TEXT=#000000 ALINK=#FFFF00 VLINK=#550000 LINK=#000099> <center> <H1> cp - copy a file </H1> </center> <p> <b> int cp(string src, string dst); </b> <p> Copies the file 'src' to the file 'dst'. <p> Returns 1 for success, returns -1 if the first src is unreadable, -2 if dst is unreadable, and -3 if an i/o error occurs. <p> See also: <A HREF=rm.html> rm </A>, <A HREF=rmdir.html> rmdir </A>, <A HREF=rename.html> rename </A>, <A HREF=link.html> link </A> <p> <HR> <ADDRESS> <A HREF=http://wagner.princeton.edu/~tim> Tim Hollebeek </A> <p> <A HREF="http://www.imaginary.com/~beek/"> Beek </A>@ZorkMUD, Lima Bean, IdeaExchange, TMI-2, and elsewhere </ADDRESS>