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

gnl: Newline chars are not seen, all of the file is read like one string #36

Open
eluscha opened this issue Oct 30, 2024 · 1 comment
Open

Comments

@eluscha
Copy link

eluscha commented Oct 30, 2024

line[i] = buffer[buffer_pos++] has to be before if (line[i] == '\n').
When newline char is detected i should be also incremented before breaking out

@eluscha eluscha changed the title Newline chars are not seen, all of the file is read like one string gnl: Newline chars are not seen, all of the file is read like one string Oct 30, 2024
@pasqualerossi
Copy link
Owner

Create a pull request and I'll update the code.

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