aboutsummaryrefslogtreecommitdiffstats
path: root/touch.c
diff options
context:
space:
mode:
Diffstat (limited to 'touch.c')
-rw-r--r--touch.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/touch.c b/touch.c
new file mode 100644
index 0000000..19b9ed7
--- /dev/null
+++ b/touch.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+
+int main(int argc, char *argv[])
+{
+ FILE *f;
+
+ for (int i = 1; i < argc; i++) {
+ f = fopen(argv[i], "a");
+ fprintf(f, "\n"); /* TODO make this actually work without writing anything to the file*/
+ fclose(f);
+ }
+}