home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
GIFTIF.ZIP
/
WRITETIF.C
< prev
next >
Wrap
C/C++ Source or Header
|
1989-11-22
|
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 );
}