home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l200 / 6.ddi / LIB / NAME.C < prev    next >
Encoding:
C/C++ Source or Header  |  1986-08-21  |  375 b   |  18 lines

  1. /*    NAME(oldname, newname) -- renames file oldname to newname
  2.  
  3.         Copyright (c) 1983, 1984  by  JMI Software Consultants, Inc.
  4.  */
  5.  
  6. #include "acom.h"
  7. #include "host.h"
  8.  
  9. VOID NAME(oldname, newname)
  10.     BTEXT *oldname, *newname;
  11.     {
  12.     IMPORT INT strlpfx;
  13.     COUNT status;
  14.  
  15.     if ((status = rename(oldname + strlpfx, newname + strlpfx)) < 0)
  16.         xerror(status, "NAME");
  17.     }
  18.