Add the break.c example master
authorJoshua Wise <joshua@nyus.joshuawise.com>
Mon, 25 Aug 2008 21:23:25 +0000 (17:23 -0400)
committerJoshua Wise <joshua@nyus.joshuawise.com>
Mon, 25 Aug 2008 21:23:25 +0000 (17:23 -0400)
examples/break.c [new file with mode: 0644]

diff --git a/examples/break.c b/examples/break.c
new file mode 100644 (file)
index 0000000..61b452e
--- /dev/null
@@ -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);
+}
This page took 0.018481 seconds and 4 git commands to generate.