commit 3097bcd

ohmu  ·  2026-10-21 15:35:38 +0300 MSK
parent af87f32
omarchy users now can do their lovely thing
2 files changed,  +24, -0
A main.c
+4, -0
1@@ -0,0 +1,4 @@
2+all:
3+	clang -o touch-the-balls main.c
4+clean:
5+	rm -f touch-the-balls
A main.c
+20, -0
 1@@ -0,0 +1,20 @@
 2+#include <stdio.h>
 3+#include <stdlib.h>
 4+
 5+int
 6+main(int argc, char *argv[])
 7+{
 8+	int i;
 9+	FILE *fptr;
10+	
11+	for(i=1; i < argc; i++){
12+		fptr = fopen(argv[i], "w");
13+		if(!fptr){
14+			fprintf(stderr, "can't create file: %s\n", argv[i]);
15+			exit(1);
16+		}
17+		fclose(fptr);
18+	}
19+	
20+	return 0;
21+}