Skip to main content

cp

Discworld driver help

cp

Name

cp() - copy a file

Synopsis

int cp( string src, string dst );

Description

Copies the file `src' to the file `dst'.

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.

See also

rm(), rmdir(), rename(), link()