File: compress.c

package info (click to toggle)
libffi-platypus-perl 2.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,860 kB
  • sloc: perl: 7,388; ansic: 6,862; cpp: 53; sh: 19; makefile: 14
file content (13 lines) | stat: -rw-r--r-- 334 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <bzlib.h>
#include <stdlib.h>

int
bzip2__new(bz_stream **stream, int blockSize100k, int verbosity, int workFactor )
{
  *stream = malloc(sizeof(bz_stream));
  (*stream)->bzalloc = NULL;
  (*stream)->bzfree  = NULL;
  (*stream)->opaque  = NULL;

  return BZ2_bzCompressInit(*stream, blockSize100k, verbosity, workFactor );
}