Category : Printer + Display Graphics
Archive   : TIFGIF.ZIP
Filename : COMPRESS.H
Output of file : COMPRESS.H contained in archive : TIFGIF.ZIP
short (*get_byte_routine)(void),
short (*put_byte_routine)(unsigned char) );
/*
* Function:
* Compress a stream of data bytes using the LZW algorithm.
*
* Inputs:
* min_code_size
* the field size of an input value. Should be in the range from
* 1 to 9.
*
* get_byte_routine
* address of the caller's "get_byte" routine:
*
* status = get_byte();
*
* where "status" is
* 0 .. 255 the byte just read
* -1 logical end-of-file
* < -3 error codes
*
* put_byte_routine
* address the the caller's "put_byte" routine:
*
* status = put_byte(value)
*
* where
* value the byte to write
* status 0 = OK, else < -3 means some error code
*
* Returns:
* 0 normal completion
* -1 (not used)
* -2 insufficient dynamic memory
* -3 bad "min_code_size"
* < -3 error status from either the get_byte or put_byte routine
*/
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/