2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
5 ANSI C function rename().
11 /*****************************************************************************
23 Renames a file or directory.
26 oldpath - Complete path to existing file or directory.
27 newpath - Complete path to the new file or directory.
30 0 on success and -1 on error. In case of an error, errno is set.
42 ******************************************************************************/
44 if (!Rename ((STRPTR
)oldpath
,(STRPTR
)newpath
))
46 errno
= IoErr2errno (IoErr());