]>
diplodocus.org Git - nmh/blob - docs/historical/mh-6.8.5/sbr/m_backup.c
1 /* m_backup.c - construct a backup file */
11 static char buffer
[BUFSIZ
];
13 if ((cp
= r1bindex (file
, '/')) == file
)
14 (void) sprintf (buffer
, "%s%s", SBACKUP
, cp
);
16 (void) sprintf (buffer
, "%.*s%s%s", cp
- file
, file
, SBACKUP
, cp
);
17 (void) (unlink (buffer
));