/[gnats]/gnats/libiberty/rename.c
ViewVC logotype

Diff of /gnats/libiberty/rename.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by pdm, Mon Dec 10 23:03:26 2001 UTC revision 1.3 by chewie, Sat Nov 13 05:14:17 2004 UTC
# Line 1  Line 1 
1  /* rename -- rename a file  /* rename -- rename a file
2     This function is in the public domain. */     This function is in the public domain. */
3    
4  /* Rename a file.  */  /*
5    
6    @deftypefn Supplemental int rename (const char *@var{old}, const char *@var{new})
7    
8    Renames a file from @var{old} to @var{new}.  If @var{new} already
9    exists, it is removed.
10    
11    @end deftypefn
12    
13    */
14    
15    #include "ansidecl.h"
16  #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
17  #include "config.h"  #include "config.h"
18  #endif  #endif
# Line 13  Line 23 
23    
24  int  int
25  rename (zfrom, zto)  rename (zfrom, zto)
26       char *zfrom;       const char *zfrom;
27       char *zto;       const char *zto;
28  {  {
29    if (link (zfrom, zto) < 0)    if (link (zfrom, zto) < 0)
30      {      {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26