diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-08-23 23:27:57 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-08-23 23:27:57 +0200 |
commit | cfd221014c1e5337ec14503430c98ca620024f81 (patch) | |
tree | dab43957d533958230c6bf8471c86526825bf47f /doc/en | |
parent | b459dab84bcc2fa30634c083c931797e3ca6f4f6 (diff) | |
download | weechat-cfd221014c1e5337ec14503430c98ca620024f81.zip |
api: add argument "bytes" in function string_dyn_concat
Diffstat (limited to 'doc/en')
-rw-r--r-- | doc/en/weechat_plugin_api.en.adoc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index 172e9a936..f19c29f95 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -2819,7 +2819,7 @@ This function is not available in scripting API. ==== string_dyn_concat -_WeeChat ≥ 1.8._ +_WeeChat ≥ 1.8, updated in 3.0._ Concatenate a string to a dynamic string. @@ -2830,13 +2830,16 @@ Prototype: [source,C] ---- -int weechat_string_dyn_concat (char **string, const char *add); +int weechat_string_dyn_concat (char **string, const char *add, int bytes); ---- Arguments: * _string_: pointer to dynamic string * _add_: the string to add +* _bytes_: max number of bytes in _add_ to concatenate, must be lower or equal + to length of _add_ (-1 = automatic: concatenate whole string _add_) + _(WeeChat ≥ 3.0)_ Return value: @@ -2849,7 +2852,7 @@ C example: char **string = weechat_string_dyn_alloc (256); if (weechat_string_dyn_copy (string, "test")) { - if (weechat_string_dyn_concat (string, "abc")) + if (weechat_string_dyn_concat (string, "abc", -1)) { /* ... */ } |