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

Add lyd_print_mem_len API to return printed size #2103

Closed

Conversation

irfanHaslanded
Copy link
Contributor

It can be useful to know how many bytes were written, and avoid an expensive and redundant strlen by the application.

It can be useful to know how many bytes were written, and avoid an
expensive and redundant strlen by the application.
@michalvasko
Copy link
Member

You can write such a wrapper for your application, if you need it, just use lyd_print_all(), for example, instead of lyd_print_() so unless you have some arguments supporting adding this API, I will close this PR.

@irfanHaslanded
Copy link
Contributor Author

I see, similar to sr_lyd_print_lyb. Thanks Michal

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

Successfully merging this pull request may close these issues.

2 participants