|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T m
Length: 525 (0x20d)
Types: TextFile
Names: »m_scratch.c«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
└─⟦3658e588a⟧ »EurOpenD3/mail/mh/mh-6.7.tar.Z«
└─⟦c75e36ecb⟧
└─⟦this⟧ »mh-6.7/sbr/m_scratch.c«
/* m_scratch.c - construct a scratch file */
#include "../h/mh.h"
#include <stdio.h>
char *m_scratch (file, template)
register char *file,
*template;
{
register char *cp;
static char buffer[BUFSIZ],
tmpfil[BUFSIZ];
(void) sprintf (tmpfil, "%sXXXXXX", template);
(void) mktemp (tmpfil);
if ((cp = r1bindex (file, '/')) == file)
(void) strcpy (buffer, tmpfil);
else
(void) sprintf (buffer, "%.*s%s", cp - file, file, tmpfil);
(void) unlink (buffer);
return buffer;
}