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

improve doc for json_object_to_json_string() #153

Merged
merged 1 commit into from Sep 14, 2014
Merged

Conversation

LeSpocky
Copy link
Contributor

The function returns a pointer, after all converting and stuff, it's this in the end:

return jso->_pb->buf;

This is an internal buffer handled by the json-c library itself. I suppose the size is reallocated on purpose. Doc update clarifies, the user should not free this and use strdup() in concurrent environments. I hope I understood this correctly.

hawicz added a commit that referenced this pull request Sep 14, 2014
improve doc for json_object_to_json_string()
@hawicz hawicz merged commit ec4879a into json-c:master Sep 14, 2014
@LeSpocky LeSpocky deleted the doc branch September 15, 2014 08:26
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.

None yet

2 participants