DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦c31b9506d⟧ TextFile

    Length: 413 (0x19d)
    Types: TextFile
    Names: »m_backup.c«

Derivation

└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
    └─⟦3658e588a⟧ »EurOpenD3/mail/mh/mh-6.7.tar.Z« 
        └─⟦c75e36ecb⟧ 
            └─⟦this⟧ »mh-6.7/sbr/m_backup.c« 

TextFile

/* 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;
}