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/fr | |
parent | b459dab84bcc2fa30634c083c931797e3ca6f4f6 (diff) | |
download | weechat-cfd221014c1e5337ec14503430c98ca620024f81.zip |
api: add argument "bytes" in function string_dyn_concat
Diffstat (limited to 'doc/fr')
-rw-r--r-- | doc/fr/weechat_plugin_api.fr.adoc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc index df275701e..ed6bf238d 100644 --- a/doc/fr/weechat_plugin_api.fr.adoc +++ b/doc/fr/weechat_plugin_api.fr.adoc @@ -2864,7 +2864,7 @@ Cette fonction n'est pas disponible dans l'API script. ==== string_dyn_concat -_WeeChat ≥ 1.8._ +_WeeChat ≥ 1.8, mis à jour en 3.0._ Concaténer une chaîne dans une chaîne dynamique. @@ -2875,13 +2875,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); ---- Paramètres : * _string_ : pointeur vers la chaîne dynamique * _add_ : la chaîne à ajouter +* _bytes_ : nombre maximum d'octets de _add_ à concaténer, doit être inférieur + ou égal à la longueur de _add_ (-1 = automatique : concaténer la totalité de + la chaîne _add_) _(WeeChat ≥ 3.0)_ Valeur de retour : @@ -2894,7 +2897,7 @@ Exemple en C : 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)) { /* ... */ } |