We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3262414 commit 649715eCopy full SHA for 649715e
main.c
@@ -27,12 +27,9 @@ int main(int argc, char *argv[]){
27
28
// Get the source code from the file provided and print it
29
char source[LENGTH]="";
30
- fgets(source, LENGTH, fopen(argv[1], "r"));
31
- printf("Source code: %s\n", source);
+ FILE *file = fopen(argv[1], "r");
+ printf("Source code: %s\n", fgets(source, LENGTH, file));
32
33
- // Interpreter
34
- int cells[LENGTH], pos, loops[];
35
- for (int i=0; i=)
36
37
return 0;
38
}
0 commit comments