/* encode.h */ #include /* this is tha datastructure returned by the encoding subroutine */ /* the encoded data contains two parts - the number of bytes read */ /* and the size of the compressed file. */ typedef struct { int input_size; /* size of input file */ int output_size; /* size of output file */ } encode_data_type; /* This procedure encodes the data in input file using BPC bits per code,*/ /*and writes the compressed data in output file */ encode_data_type LZencode(FILE *input_file_name, FILE *output_file_name,int BPC);