4.3BSD-UWisc/man/cat3/rename.3f




RENAME(3F)          UNIX Programmer's Manual           RENAME(3F)



NAME
     rename - rename a file

SYNOPSIS
     integer function rename (from, to)
     character*(*) from, to

DESCRIPTION
     _F_r_o_m must be the pathname of an existing file.  _T_o will
     become the new pathname for the file.  If _t_o exists, then
     both _f_r_o_m and _t_o must be the same type of file, and must
     reside on the same filesystem.  If _t_o exists, it will be
     removed first.

     The returned value will be 0 if successful; a system error
     code otherwise.

FILES
     /usr/lib/libU77.a

SEE ALSO
     rename(2), perror(3F)

BUGS
     Pathnames can be no longer than MAXPATHLEN as defined in
     <_s_y_s/_p_a_r_a_m._h>.





























Printed 12/27/86          May 15, 1985                          1