aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/util.c b/util.c
index 829e7d1..93c5904 100644
--- a/util.c
+++ b/util.c
@@ -26,6 +26,12 @@ char* get_chararray(int size)
return ret;
}
+void array_cpy(int *a, int *b, int len) //copies b to a
+{
+ int i;
+ for(i = 0; i < len; i++) a[i] = b[i];
+}
+
/* In string a[], replace nth occerence of x[] with y[],
or all occerences if n == 0. Note '.' is wild and
the last . replaced will be returned. */
bgstack15