#include <exec/types.h>
#include <proto/dos.h>

/*********************************************************/
			void SafeClose(BPTR *file)
/*********************************************************
   Close a file safely (check whether NULL or not)
     Update variable passed by making NULL
**********************************************************/
{ if(*file) Close(*file);  *file = NULL; }

