summaryrefslogtreecommitdiff
path: root/wk3/pset/runoff/runoff.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-19 22:05:31 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-19 22:05:31 +0000
commit65850db3203ca210ea5dde2475c7ed361934b36c (patch)
tree2e1440b07f2414f6b1b86cb5e7b66bb400b1f364 /wk3/pset/runoff/runoff.c
parent5a39edd182eb9ce6babf87e48560d19551b3267a (diff)
Mon, Feb 19, 2024, 2:05 PM -08:00
Diffstat (limited to 'wk3/pset/runoff/runoff.c')
-rw-r--r--wk3/pset/runoff/runoff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wk3/pset/runoff/runoff.c b/wk3/pset/runoff/runoff.c
index ae69ce3..a959a2c 100644
--- a/wk3/pset/runoff/runoff.c
+++ b/wk3/pset/runoff/runoff.c
@@ -169,6 +169,7 @@ bool print_winner(void)
if (candidates[i].votes > (voter_count / 2))
{
printf("%s\n", candidates[i].name);
+ return true;
}
}
return false;