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/it | |
parent | e5cbbd781d814e321845598775f594f0f808e18e (diff) | |
download | weechat-71ae8f1907592a25d8fa6b10e02020f19c16b215.zip |
api: add function utf8_strncpy
Diffstat (limited to 'doc/it')
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index 0e850188a..088b728c0 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -3938,6 +3938,40 @@ free (string); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. +==== utf8_strncpy + +_WeeChat ≥ 3.8._ + +// TRANSLATION MISSING +Copy _length_ chars max in another string and add null byte at the end. + +Prototipo: + +[source,c] +---- +void weechat_utf8_strncpy (char *dest, const char *string, int length); +---- + +Argomenti: + +// TRANSLATION MISSING +* _dest_: destination string (must be long enough) +* _string_: stringa +// TRANSLATION MISSING +* _length_: max chars to copy + +Esempio in C: + +[source,c] +---- +char dest[256]; + +weechat_utf8_strncpy (dest, "chêne", 3); /* copies "chê" to dest */ +---- + +[NOTE] +Questa funzione non è disponibile nelle API per lo scripting. + // TRANSLATION MISSING [[crypto]] === Cryptography |