1 /* rename -- rename a file
2 This function is in the public domain. */
6 @deftypefn Supplemental int rename (const char *@var{old}, const char *@var{new})
8 Renames a file from @var{old} to @var{new}. If @var{new} already
25 rename (const char *zfrom
, const char *zto
)
27 if (link (zfrom
, zto
) < 0)
32 || link (zfrom
, zto
) < 0)
35 return unlink (zfrom
);
This page took 0.029684 seconds and 4 git commands to generate.