|
| iMatix home page | << | < | > | >> |
SFLVersion 2.11 |
#include "sflfile.h" void ftmp_close (FILE *tempstream)
Closes a temporary file created by ftmp open(). The file is closed and deleted.
{
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;
}
}
}
| | << | < | > | >> |
|