/*----------------------------------------------------------------------*/
/* Copyright (c) 1988-1989						*/
/* by CompuServe Inc., Tucson, AZ.  All Rights Reserved			*/
/* WRITETIF.C can be copied and distributed freely for any		*/
/* non-commercial purposes. WRITETIF.C can only be incorporated		*/
/* into commercial software with the permission of CompuServe Inc.	*/
/*----------------------------------------------------------------------*/

/* Program file WRITETIF.C */

#include <stdio.h>
#include "cnvhuf.h"
#include "writetif.h"

static FILE
	*tif_file;

extern void init_TIF_output( char	filename[21] )
{
    tif_file = fopen( filename, "wb" );
}

extern short put_TIF_byte( unsigned char	nxt_char )
{
    fputc( nxt_char, tif_file );
    return ferror( tif_file );
}


extern	void	finish_output( void )
{
   fclose( tif_file );
}

