1. Steven! Ragnarök
  2. sh142

Commits

Steven! Ragnarök  committed c6c5965

Chomp input from files.

  • Participants
  • Parent commits 2aac5b3
  • Branches default

Comments (0)

Files changed (1)

File src/main.c

View file
 			if (strstr(lsbuffer, fileext) != NULL) {
 				source_file = fopen(chomp(lsbuffer), "r");
 				while(fgets(sourcebuffer, MAX_STRING_LENGTH, source_file) != NULL) {
-					tokens = tokenize(sourcebuffer);
+					tokens = tokenize(chomp(sourcebuffer));
 					interpret(parse());
 				}
 			}