| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 1.91

 

get_tmp_file_name

#include "sflfile.h"
char *
get_tmp_file_name (const char *path, qbyte *index, const char *ext)

Synopsis

Get a temporary file name.

Source Code - (sflfile.c)

{
    static char
        file_name [LINE_MAX + 1];

    do
      {
        if (path)
            sprintf (file_name, "%s%c%08lX.%s", path, PATHEND, *index, ext);
        else
            sprintf (file_name, "%08lX.%s", *index++, ext);
        (*index)++;
      } while (file exists (file_name));
    return (file_name);
}

| << | < | > | >> iMatix Copyright © 1996-98 iMatix