Skip to content

Instantly share code, notes, and snippets.

@beakr beakr/compress.c
Created Sep 24, 2014

What would you like to do?
#include <stdio.h>
#include <string.h>
#include <zlib.h>
int main()
const char * dat = "Hello world!";
gzFile * f = (gzFile *)gzopen("archive.gz", "wb");
gzwrite(f, dat, strlen(dat));
return 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.