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
};
putc(' ', fp);
};
- */
- fprintf(fp, "The tool has been CALLED!");
+ //fprintf(fp, "The tool has been CALLED!");
putc('\n', fp);
fclose(fp);