aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--strbst.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/strbst.c b/strbst.c
index 16c2e61..59d637e 100644
--- a/strbst.c
+++ b/strbst.c
@@ -7,8 +7,9 @@
strbst defines strbst with one member: strbstnode->head.
strbstnode has left, right, data, ind, and ht for avl balancing
*/
-#define max(a,b) ((a > b) ? a : b)
-#define min(a,b) ((a < b) ? a : b)
+int max(int a, int b) {
+ return ( (a < b) ? a : b);
+}
typedef char height;