diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-03 16:56:01 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-10 16:05:14 +0100 |
commit | 71ae8f1907592a25d8fa6b10e02020f19c16b215 (patch) | |
tree | 42d2bccfc3f77ecca605e5441211cb827f69d8da /doc/sr | |
parent | e5cbbd781d814e321845598775f594f0f808e18e (diff) | |
download | weechat-71ae8f1907592a25d8fa6b10e02020f19c16b215.zip |
api: add function utf8_strncpy
Diffstat (limited to 'doc/sr')
-rw-r--r-- | doc/sr/weechat_plugin_api.sr.adoc | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/sr/weechat_plugin_api.sr.adoc b/doc/sr/weechat_plugin_api.sr.adoc index 7d1dea04a..3739ddcd3 100644 --- a/doc/sr/weechat_plugin_api.sr.adoc +++ b/doc/sr/weechat_plugin_api.sr.adoc @@ -3663,6 +3663,40 @@ free (string); [NOTE] Ова функција није доступна у API скриптовања. +==== utf8_strncpy + +_WeeChat ≥ 3.8._ + +// TRANSLATION MISSING +Copy _length_ chars max in another string and add null byte at the end. + +Прототип: + +[source,c] +---- +void weechat_utf8_strncpy (char *dest, const char *string, int length); +---- + +Аргументи: + +// TRANSLATION MISSING +* _dest_: destination string (must be long enough) +* _string_: стринг +// TRANSLATION MISSING +* _length_: max chars to copy + +C пример: + +[source,c] +---- +char dest[256]; + +weechat_utf8_strncpy (dest, "chêne", 3); /* copies "chê" to dest */ +---- + +[NOTE] +Ова функција није доступна у API скриптовања. + [[crypto]] === Криптографија |