1: /* m_backup.c - construct a backup file */
   2: 
   3: #include "../h/mh.h"
   4: #include <stdio.h>
   5: 
   6: 
   7: char   *m_backup (file)
   8: register char   *file;
   9: {
  10:     register char  *cp;
  11:     static char buffer[BUFSIZ];
  12: 
  13:     if ((cp = r1bindex (file, '/')) == file)
  14:     (void) sprintf (buffer, "%s%s", SBACKUP, cp);
  15:     else
  16:     (void) sprintf (buffer, "%.*s%s%s", cp - file, file, SBACKUP, cp);
  17:     (void) (unlink (buffer));
  18: 
  19:     return buffer;
  20: }

Defined functions

m_backup defined in line 7; never used
Last modified: 1985-09-21
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 778
Valid CSS Valid XHTML 1.0 Strict