Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
gzjoin.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include "zlib.h"
Include dependency graph for gzjoin.c:

Go to the source code of this file.

Classes

struct  bin
 

Macros

#define local   static
 
#define CHUNK   32768 /* must be a power of two and fit in unsigned */
 
#define bget(in)
 

Functions

static int bail (char *why1, char *why2)
 
static void bclose (bin *in)
 
static binbopen (char *name)
 
static int bload (bin *in)
 
static unsigned long bget4 (bin *in)
 
static void bskip (bin *in, unsigned skip)
 
static void gzhead (bin *in)
 
static void put4 (unsigned long val, FILE *out)
 
static void zpull (z_streamp strm, bin *in)
 
static void gzinit (unsigned long *crc, unsigned long *tot, FILE *out)
 
static void gzcopy (char *name, int clr, unsigned long *crc, unsigned long *tot, FILE *out)
 
int main (int argc, char **argv)
 

Class Documentation

struct bin

Definition at line 78 of file gzjoin.c.

Collaboration diagram for bin:
Collaboration graph
Class Members
unsigned char * buf
int fd
unsigned left
char * name
unsigned char * next

Macro Definition Documentation

#define bget (   in)
Value:
(in->left ? 0 : bload(in), \
in->left ? (in->left--, *(in->next)++) : \
bail("unexpected end of file on ", in->name))
static int bload(bin *in)
Definition: gzjoin.c:121
static unsigned in(void *in_desc, z_const unsigned char **buf)
Definition: gun.c:89

Definition at line 140 of file gzjoin.c.

#define CHUNK   32768 /* must be a power of two and fit in unsigned */

Definition at line 75 of file gzjoin.c.

#define local   static

Definition at line 63 of file gzjoin.c.

Function Documentation

static int bail ( char *  why1,
char *  why2 
)
static

Definition at line 66 of file gzjoin.c.

static void bclose ( bin in)
static

Definition at line 87 of file gzjoin.c.

static unsigned long bget4 ( bin in)
static

Definition at line 145 of file gzjoin.c.

static int bload ( bin in)
static

Definition at line 121 of file gzjoin.c.

static bin* bopen ( char *  name)
static

Definition at line 100 of file gzjoin.c.

static void bskip ( bin in,
unsigned  skip 
)
static

Definition at line 157 of file gzjoin.c.

static void gzcopy ( char *  name,
int  clr,
unsigned long *  crc,
unsigned long *  tot,
FILE *  out 
)
static

Definition at line 279 of file gzjoin.c.

static void gzhead ( bin in)
static

Definition at line 204 of file gzjoin.c.

static void gzinit ( unsigned long *  crc,
unsigned long *  tot,
FILE *  out 
)
static

Definition at line 265 of file gzjoin.c.

int main ( int  argc,
char **  argv 
)

Definition at line 427 of file gzjoin.c.

static void put4 ( unsigned long  val,
FILE *  out 
)
static

Definition at line 245 of file gzjoin.c.

static void zpull ( z_streamp  strm,
bin in 
)
static

Definition at line 254 of file gzjoin.c.