c - zlib writing raw encoded stream -


i'm trying write generic function write both uncompressed , compressed file (depending on user input). according zlib, have set gzopen mode "w0" (no compression), still zlib header!

in zlib manual mentions possible write raw data (no header/trailer) doesn't how. how can write plain (raw encoded) file zlib?

thanks,

open file using transparent mode "t":

#include <zlib.h>  int main() {   gzfile file = gzopen("/tmp/a.dat", "wt");   (void) gzwrite(file, "test", 4);   (void) gzclose(file); } 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -