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

 

ftmp_close

#include "sflfile.h"
void
ftmp_close (FILE *tempstream)

Synopsis

Closes a temporary file created by ftmp open(). The file is closed and deleted.

Source Code - (sflfile.c)

{
    FTMPITEM
        *tempitem;

    ASSERT (tempstream);
    fclose (tempstream);

    /*  Find the matching tempitem node and release all resources            */
    FORLIST (tempitem, ftmplist)
      {
        if (tempitem-> stream == tempstream)
          {
            file delete (tempitem-> filename);
            mem_free (tempitem-> filename);
            list unlink (tempitem);
            mem_free (tempitem);
            break;
          }
      }
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation