comparison src/main.c @ 45:d8ac17c6d6f2

I'm an idiot
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Fri, 20 May 2022 06:38:21 -0400
parents 4f005d28d912
children 7cb9fad3f5ee
comparison
equal deleted inserted replaced
44:4f005d28d912 45:d8ac17c6d6f2
147 fflush(stdout); 147 fflush(stdout);
148 scanf("%3s", args.type); 148 scanf("%3s", args.type);
149 } 149 }
150 fflush(stdout); 150 fflush(stdout);
151 if (strcmp(args.output, " ") == 0) { /* string manipulation hell */ 151 if (strcmp(args.output, " ") == 0) { /* string manipulation hell */
152 char temp* = (char*)calloc(256, sizeof(char)); 152 char* temp = (char*)calloc(256, sizeof(char));
153 temp[0] = '\0'; 153 temp[0] = '\0';
154 char str_version[16]; 154 char str_version[16];
155 sprintf(str_version, "V%d", args.version); 155 sprintf(str_version, "V%d", args.version);
156 strncat(temp, str_version, 2); 156 strncat(temp, str_version, 2);
157 strncat(temp, "_", 1); 157 strncat(temp, "_", 1);