summaryrefslogtreecommitdiff
path: root/snippets
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2025-01-10 14:54:54 +0500
committertalha <talha@talhaamir.xyz>2025-01-10 15:01:25 +0500
commitec235190e8f3240b78f943f6fbb10408783949d0 (patch)
tree6b1a447a5c68584e54cc0c03235b77d37d61897d /snippets
parent440cc9de7021c7059523b6dafbf02f247291f160 (diff)
initializing new branch
Diffstat (limited to 'snippets')
-rw-r--r--snippets/for.c2
-rw-r--r--snippets/ifelif.c4
-rw-r--r--snippets/ifelse.c4
-rw-r--r--snippets/switch.c6
4 files changed, 16 insertions, 0 deletions
diff --git a/snippets/for.c b/snippets/for.c
new file mode 100644
index 0000000..4cc9378
--- /dev/null
+++ b/snippets/for.c
@@ -0,0 +1,2 @@
+for( ; ; ) {
+}
diff --git a/snippets/ifelif.c b/snippets/ifelif.c
new file mode 100644
index 0000000..6f37315
--- /dev/null
+++ b/snippets/ifelif.c
@@ -0,0 +1,4 @@
+if (_) {
+} else if (_) {
+} else {
+}
diff --git a/snippets/ifelse.c b/snippets/ifelse.c
new file mode 100644
index 0000000..03f9dda
--- /dev/null
+++ b/snippets/ifelse.c
@@ -0,0 +1,4 @@
+if (_) {
+}
+else {
+}
diff --git a/snippets/switch.c b/snippets/switch.c
new file mode 100644
index 0000000..b0b527a
--- /dev/null
+++ b/snippets/switch.c
@@ -0,0 +1,6 @@
+switch (_) {
+ case (_): {
+ } break;
+ default: {
+ } break;
+}