.\" @(#)rename.3f 1.3 86/01/02 SMI; from UCB 4.2 .TH RENAME 3F "07 July 1995" .SH NAME rename \- rename a file .SH SYNOPSIS .\" .IX rename "" \fLrename\fP .IX file rename .\" .B integer function rename (from, to) .br .B character*(*) from, to .SH DESCRIPTION The argument .I from must be the path name of an existing file. The argument .I to is the new path name for the file. If .I to exists, then both .I from and .I to must be the same type of file, and must reside on the same file system. If .I to exists, it is removed first. .PP The returned value is 0 if successful, a system error code otherwise. .SH FILES .B libF77.a .SH "SEE ALSO" .BR rename (2), .BR perror (3F) .SH BUGS Path names cannot be longer than .B MAXPATHLEN as defined in .BR .