alloc_re.c
changeset 0 c045670f36e9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/alloc_re.c	Thu Nov 01 14:46:11 2007 +0100
@@ -0,0 +1,17 @@
+#include "alloc.h"
+#include "byte.h"
+
+int alloc_re(x,m,n)
+char **x;
+unsigned int m;
+unsigned int n;
+{
+  char *y;
+ 
+  y = alloc(n);
+  if (!y) return 0;
+  byte_copy(y,m,*x);
+  alloc_free(*x);
+  *x = y;
+  return 1;
+}