
/*
 *  TMPFILE.C
 *
 *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
 *
 *  create a temporary file
 *
 *  template limited to 16 chars
 */

char *
TmpFileName(template)
char *template;
{
    static char Template[256];
    static unsigned short Idx;

    sprintf(Template, "%s-%08lx.TMP", template, (long)FindTask(NULL) + Idx++);
    return(Template);
}

