diff options
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] |