Skip to content

Commit 649715e

Browse files
committed
remaking (AGAIN) in C
1 parent 3262414 commit 649715e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

main.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,9 @@ int main(int argc, char *argv[]){
2727

2828
// Get the source code from the file provided and print it
2929
char source[LENGTH]="";
30-
fgets(source, LENGTH, fopen(argv[1], "r"));
31-
printf("Source code: %s\n", source);
30+
FILE *file = fopen(argv[1], "r");
31+
printf("Source code: %s\n", fgets(source, LENGTH, file));
3232

33-
// Interpreter
34-
int cells[LENGTH], pos, loops[];
35-
for (int i=0; i=)
3633

3734
return 0;
3835
}

0 commit comments

Comments
 (0)