From: Joshua Wise <joshua@nyus.joshuawise.com>
Date: Mon, 25 Aug 2008 21:23:25 +0000 (-0400)
Subject: Add the break.c example
X-Git-Url: http://git.joshuawise.com/jwcc.git/commitdiff_plain/HEAD

Add the break.c example
---

diff --git a/examples/break.c b/examples/break.c
new file mode 100644
index 0000000..61b452e
--- /dev/null
+++ b/examples/break.c
@@ -0,0 +1,18 @@
+int dummy()
+{
+  return 0;
+}
+
+int test(int in1) {
+  int result = 0;
+  while (in1 > 0)
+  {
+    in1 = in1 - 1;
+    result = result + 1;
+  }
+  return result;
+}
+
+int main() {
+  return test(5);
+}