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

Pass on string length to user on calls to toml_string_in() #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bittermiasma
Copy link

Saves the user from calling strlen() especially for large strings, when the library already knows the string length and can pass it on to the user

I hope this doesn't break API or ABI?

to strlen() for the user, especially for large strings
@cktan
Copy link
Owner

cktan commented Sep 30, 2023

I think this is not particularly useful and would break the current API. Most strings in config files are short and users are using typical C string functions to inspect the strings.

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