#ifndef __PBMIO_H__
#define __PBMIO_H__

#include <pbm.h>


typedef struct {
     bit **bits; /* 2D array is a pointer to an array of pointers */
     int rows;
     int cols;
} pbm_t;

int pbmread( const char *file, pbm_t *im);
int pbmwrite( const char *file,  pbm_t *im);
int pbmalloc( pbm_t *im, int rows, int cols);
void pbmfree( pbm_t *im);
int pbmcopy( pbm_t *dst, const pbm_t *src);

#endif
