ftp.nice.ch/pub/next/unix/mail/mh.6.7.s.tar.gz#/mh/sbr/m_backup.c

This is m_backup.c in view mode; [Download] [Up]

/* m_backup.c - construct a backup file */

#include "../h/mh.h"
#include <stdio.h>


char   *m_backup (file)
register char   *file;
{
    register char  *cp;
    static char buffer[BUFSIZ];

    if ((cp = r1bindex (file, '/')) == file)
	(void) sprintf (buffer, "%s%s", SBACKUP, cp);
    else
	(void) sprintf (buffer, "%.*s%s%s", cp - file, file, SBACKUP, cp);
    (void) (unlink (buffer));

    return buffer;
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.