aboutsummaryrefslogtreecommitdiff
path: root/template/c
diff options
context:
space:
mode:
Diffstat (limited to 'template/c')
-rw-r--r--template/c/base-main.c7
-rw-r--r--template/c/snip-comment-block.c3
-rw-r--r--template/c/snip-for.c3
3 files changed, 13 insertions, 0 deletions
diff --git a/template/c/base-main.c b/template/c/base-main.c
new file mode 100644
index 0000000..794d581
--- /dev/null
+++ b/template/c/base-main.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int
+main(int argc, char* argv[]) {
+ {{_cursor_}}
+ return 0;
+}
diff --git a/template/c/snip-comment-block.c b/template/c/snip-comment-block.c
new file mode 100644
index 0000000..5d93c0d
--- /dev/null
+++ b/template/c/snip-comment-block.c
@@ -0,0 +1,3 @@
+/**
+ * {{_cursor_}}
+ */
diff --git a/template/c/snip-for.c b/template/c/snip-for.c
new file mode 100644
index 0000000..210541e
--- /dev/null
+++ b/template/c/snip-for.c
@@ -0,0 +1,3 @@
+for (int n = 0; n < {{_input_:count}}; n++) {
+ {{_cursor_}}
+}