From 6cfd8cb353d374dc468898f69a543fa2b8ab40eb Mon Sep 17 00:00:00 2001 From: Yiying Zhang Date: Tue, 30 Sep 2014 08:22:18 -0300 Subject: [PATCH] Fixes #2 Add a function, mean() --- mm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm.c b/mm.c index 9be3cf4..e14df07 100644 --- a/mm.c +++ b/mm.c @@ -15,7 +15,8 @@ int numcmp (const void *a, const void *b) { double mean (int *num, int len){ double sum = 0, mean = 0; //using a for loop to add up all the values in input numbers - for(int i = 0; i