home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
1st Canadian Shareware Disc
/
1st_Canadian_Shareware_Disc_1991.ISO
/
graphics
/
giftif
/
writetif.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-11-21
|
878b
|
35 lines
/*----------------------------------------------------------------------*/
/* 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 );
}