From 55f5a1d0ba00ad8e15fadc391e4aa3960c9afdb3 Mon Sep 17 00:00:00 2001 From: Squibid Date: Wed, 3 May 2023 22:36:17 -0400 Subject: inital commit most of the current utils don't work --- touch.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 touch.c (limited to 'touch.c') 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 + +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); + } +} -- cgit v1.2.1