From 33f06660ddb5997499ceaa169e3dc74e41af0731 Mon Sep 17 00:00:00 2001 From: parking_turkeys Date: Thu, 6 Aug 2026 17:15:06 -0400 Subject: [PATCH] ... i dont think it works. NOOO I HAVE TO DO PROPER WINDOWS FILE I/O --- main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 1020918..ae1abd6 100644 --- a/main.c +++ b/main.c @@ -8,14 +8,15 @@ static int log_args(int argc, char *argv[]); int main(int argc, char *argv[]) { //test ver: just like. log the arguments lol!! - log_args(1, (char*[]){"a", "a"}); + log_args(argc, argv); + + return 0; }; int log_args(int argc, char *argv[]) { FILE *fp; fp = fopen(LOGFILE, "a"); - /* no idea why this wont work lmao??? for (int i = 1; i < argc; i++) { //loop through argv[] char c; for (int n = 0; (c = argv[i][n]) != '\0'; n++) { //loop through each character @@ -23,8 +24,7 @@ int log_args(int argc, char *argv[]) }; putc(' ', fp); }; - */ - fprintf(fp, "The tool has been CALLED!"); + //fprintf(fp, "The tool has been CALLED!"); putc('\n', fp); fclose(fp); -- 2.47.3