cookie_io_functions_t:
typedef struct { cookie_read_function_t *read; cookie_write_function_t *write; cookie_seek_function_t *seek; cookie_close_function_t *close; } cookie_io_functions_t;
if I use zlib, I can use gzwrite to compress some texts and write to a file at the same time, I wonder if there is a good way to deal with it like gzwrite.
thx!