From fdf827d31f655f693e4273a23538c5d605f71931 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 15 Nov 2008 18:28:36 +0100 Subject: Add function utf8_strndup to C plugin API --- doc/en/dev/plugin_c_api.en.xml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'doc/en/dev') diff --git a/doc/en/dev/plugin_c_api.en.xml b/doc/en/dev/plugin_c_api.en.xml index 3b35e5713..f4eb5b150 100644 --- a/doc/en/dev/plugin_c_api.en.xml +++ b/doc/en/dev/plugin_c_api.en.xml @@ -1545,6 +1545,42 @@ char *weechat_utf8_pos (const char *string, int real_pos); +
+ weechat_utf8_strndup + + + Prototype: + +char *weechat_utf8_strndup (const char *string, int max_chars); + + + + Return duplicate string, with max N chars. + + + Arguments: + + + + : string + + + + + : max chars + + + + + + Return value: duplicated string, NULL if error. + + + Example: + char *string = weechat_utf8_strndup ("chĂȘne", 3); /* returns "chĂȘ" */ + +
+ -- cgit v1.2.3