#include #include "dk4conf.h" #include "dk4lzwe.h" #include "dk4edstm.h" #include "dk4strmf.h" #include "dk4strmco.h" $!trace-include static const unsigned char teststr[] = { 45, 45, 45, 45, 45, 65, 45, 45, 45, 66 }; int main(int argc, char *argv[]) { dk4_stream_t *strm_stdout; dk4_stream_t *strm_lzw; $!trace-init testlzws.deb $? "+ main" strm_stdout = dk4stream_open_for_file( stdout, DK4_STREAM_WRITE, 0, 4096, NULL ); if (NULL != strm_stdout) { strm_lzw = dk4strmco_open( strm_stdout, DK4_STRMCO_PP_NONE, DK4_STRMCO_CO_LZW, DK4_STRMCO_OE_HEX, (DK4_STRMCO_FL_EOD_OE | DK4_STRMCO_FL_NL_OE), NULL ); if (NULL != strm_lzw) { dk4stream_write( strm_lzw, teststr, sizeof(teststr), NULL ); dk4stream_close(strm_lzw, NULL); } dk4stream_close(strm_stdout, NULL); } $? "- main" $!trace-end return 0; } /* vim: set ai sw=4 ts=4 : */