2 * m_backup.c -- construct a backup file
4 * This code is Copyright (c) 2002, by the authors of nmh. See the
5 * COPYRIGHT file in the root directory of the nmh distribution for
6 * complete copyright information.
16 static char buffer[BUFSIZ];
18 if ((cp = r1bindex(file, '/')) == file)
19 snprintf(buffer, sizeof(buffer), "%s%s", backup_prefix, cp);
21 snprintf(buffer, sizeof(buffer), "%.*s%s%s", (int)(cp - file),
22 file, backup_prefix, cp);