about summary refs log tree commit diff
path: root/lib/libpbm1.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpbm1.c')
-rw-r--r--lib/libpbm1.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/lib/libpbm1.c b/lib/libpbm1.c
index 45989116..c559c373 100644
--- a/lib/libpbm1.c
+++ b/lib/libpbm1.c
@@ -18,8 +18,26 @@
 
 #include <stdio.h>
 
-#include "pbm.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 *   const argcP,