-
Notifications
You must be signed in to change notification settings - Fork 50
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
libflux/buffer: Add trimmed peek/read line variants #1639
Conversation
For convenience, support flux_buffer_peek_trimmed_line() and flux_buffer_read_trimmed_line() variants, which will read lines but strip off any trailing newline characters. Fixes flux-framework#1624
Hit a valgrind fail, which I'm fairly certain this PR has nothing to do with. I also hit a similar one in #1564. I'm going to open an issue on it. Restarted the builder though.
|
Seems good to me. At first I was thinking we should add a string of characters to trim, instead of just trimming one possible newline (e.g. any whitespace character might be useful), but that could be added later if even necessary. LGTM! |
For convenience, support flux_buffer_peek_trimmed_line() and
flux_buffer_read_trimmed_line() variants, which will read lines
but strip off any trailing newline characters.
Fixes #1624