From: parking_turkeys Date: Thu, 6 Aug 2026 21:15:06 +0000 (-0400) Subject: ... i dont think it works. NOOO I HAVE TO DO PROPER WINDOWS FILE I/O X-Git-Tag: horizons~13 X-Git-Url: http://git.p-t.hackclub.app/?a=commitdiff_plain;h=33f06660ddb5997499ceaa169e3dc74e41af0731;p=colon3wavtool.git ... i dont think it works. NOOO I HAVE TO DO PROPER WINDOWS FILE I/O --- 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);