Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is it made to read one character from each line? #86

Open
shranet opened this issue Feb 2, 2024 · 1 comment
Open

Why is it made to read one character from each line? #86

shranet opened this issue Feb 2, 2024 · 1 comment

Comments

@shranet
Copy link

shranet commented Feb 2, 2024

brainfuck/src/brainfuck.c

Lines 565 to 570 in 71c0e0c

char brainfuck_getchar() {
char ch, t;
ch = getchar();
while ((t = getchar()) != '\n' && t != EOF) { } /* Clear stdin */
return ch;
}

If we trust this repository, it's not like that in the original.
https://gist.github.com/rdebath/0ca09ec0fdcf3f82478f#file-bfi-c-L19

@sigmasternchen
Copy link

Seconded. It's not very "useful" this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants