diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-01-14 21:41:25 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-01-14 21:41:25 +0100 |
commit | f8915129bf2656623168c9f17846ac29759c13ef (patch) | |
tree | f6fffc4ac898376ed8513cef16ba044a2089f7ae /doc/en | |
parent | 0e57d010766f18f74b6bd8e67e21c3142da2c30a (diff) | |
download | weechat-f8915129bf2656623168c9f17846ac29759c13ef.zip |
core: rename argument "length" to "bytes" in function string_strndup
Diffstat (limited to 'doc/en')
-rw-r--r-- | doc/en/weechat_plugin_api.en.adoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index 3efc53367..95eefebad 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -546,19 +546,19 @@ str = weechat.ngettext("file", "files", num_files) ==== strndup -Return duplicated string, with _length_ chars max. +Return duplicated string, with a max number of bytes. Prototype: [source,c] ---- -char *weechat_strndup (const char *string, int length); +char *weechat_strndup (const char *string, int bytes); ---- Arguments: * _string_: string to duplicate -* _length_: max chars to duplicate +* _bytes_: max bytes to duplicate Return value: |