diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-04-01 12:04:28 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-04-01 12:04:28 +0200 |
commit | af138840b3484e106d247c4a6a18a28e8225f5bb (patch) | |
tree | 602c259d4bbe4ea5f2d86f903afd60d4ac9caefc /doc/en/weechat_plugin_api.en.adoc | |
parent | f855b6b0f39755c094e5703c990ab4660099ad4d (diff) | |
download | weechat-af138840b3484e106d247c4a6a18a28e8225f5bb.zip |
api: return pointer to string in function string_dyn_free() if argument "free_string" is 0
Diffstat (limited to 'doc/en/weechat_plugin_api.en.adoc')
-rw-r--r-- | doc/en/weechat_plugin_api.en.adoc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index a1bd8f3d4..264b12d85 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -2335,7 +2335,7 @@ Prototype: [source,C] ---- -void weechat_dyn_free (char **string, int free_string); +char *weechat_dyn_free (char **string, int free_string); ---- Arguments: @@ -2344,6 +2344,10 @@ Arguments: * _free_string_: free the string itself; if 0, the content of _*string_ remains valid after the call to this function +Return value: + +* string pointer if _free_string_ is 0, otherwise NULL + C example: [source,C] |