bugfix repeat,for_range + 2 new demos
[svn/Cll1h/.git] / demos / for_range.c
diff --git a/demos/for_range.c b/demos/for_range.c
new file mode 100644 (file)
index 0000000..6aedae7
--- /dev/null
@@ -0,0 +1,23 @@
+#include "cll1.h"
+
+program
+{
+ int i;
+
+ printf("for_range(i,0,1)");
+ for_range(i,0,1) printf(" [%d]",i);
+
+ printf("\nfor_range(i,1,0)");
+ for_range(i,1,0) printf(" [%d]",i);
+
+ printf("\nfor_range(i,1,1)");
+ for_range(i,1,1) printf(" [%d]",i);
+
+ printf("\nfor_range(i,1,5)");
+ for_range(i,1,5) printf(" [%d]",i);
+
+ printf("\nfor_range(i,5,1)");
+ for_range(i,5,1) printf(" [%d]",i);
+
+ printf("\n");
+}
This page took 0.139977 seconds and 4 git commands to generate.