aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNathan Vance <nathav63@gmail.com>2015-02-18 19:51:17 -0500
committerNathan Vance <nathav63@gmail.com>2015-02-18 19:51:17 -0500
commitd43d5b206ae3393a19b21c36d2b8ba443ed0e121 (patch)
treea6607af121caf8a79e528ae20d6786e108136d84 /util.c
parentadded data to keep track of hands and what's been built (diff)
download7w-d43d5b206ae3393a19b21c36d2b8ba443ed0e121.tar.gz
7w-d43d5b206ae3393a19b21c36d2b8ba443ed0e121.tar.bz2
7w-d43d5b206ae3393a19b21c36d2b8ba443ed0e121.zip
Added a view for the hand
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