Skip to content

Commit 617b342

Browse files
committed
Renaming tokens file pointer
1 parent 8d5e958 commit 617b342

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ int main(int argc, char** argv)
8686

8787
/*------ Writting in out file --------*/
8888
//Open out file
89-
FILE *f_out = fopen("Output/tokens.txt", "w");
89+
FILE *fp_out = fopen("Output/tokens.txt", "w");
9090

9191
//Checking for error on file opening
92-
if(f_out == NULL)
92+
if(fp_out == NULL)
9393
{
9494
printf("Error opening output file\n");
9595
return 1;
@@ -107,7 +107,7 @@ int main(int argc, char** argv)
107107

108108

109109
//Write all tokens read to file
110-
write_tokens_file(f_out, vec_tokens);
110+
write_tokens_file(fp_out, vec_tokens);
111111

112112
//Write all errors to file
113113
write_error_file(fp_error, vec_synt_error, vec_tokens);
@@ -125,7 +125,7 @@ int main(int argc, char** argv)
125125

126126
/*------ Closing the files --------*/
127127
fclose(program);
128-
fclose(f_out);
128+
fclose(fp_out);
129129
fclose(fp_error);
130130

131131
return 0;

0 commit comments

Comments
 (0)