diff options
Diffstat (limited to 'lib/libpbm1.c')
-rw-r--r-- | lib/libpbm1.c | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/lib/libpbm1.c b/lib/libpbm1.c index 8dd491a7..c559c373 100644 --- a/lib/libpbm1.c +++ b/lib/libpbm1.c @@ -17,13 +17,33 @@ #define _LARGE_FILES #include <stdio.h> -#include "pbm.h" -#include "libpbm.h" + +#include "mallocvar.h" #include "shhopt.h" +#include "pbm.h" + + + +bit * +pbm_allocrow(unsigned int const cols) { + + bit * bitrow; + + MALLOCARRAY(bitrow, cols); + + if (bitrow == NULL) + pm_error("Unable to allocate space for a %u-column bit row", cols); + + return bitrow; +} + + void -pbm_init(int *argcP, char *argv[]) { - pm_proginit(argcP, argv); +pbm_init(int * const argcP, + char ** const argv) { + + pm_proginit(argcP, (const char **)argv); } |