mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-18 11:41:58 +02:00
gstrfuncs: Add missing (nullable) annotations to g_strndup()
This commit is contained in:
parent
2d5f608454
commit
8689a1f8b7
@ -395,7 +395,7 @@ g_memdup2 (gconstpointer mem,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* g_strndup:
|
* g_strndup:
|
||||||
* @str: the string to duplicate
|
* @str: (nullable): the string to duplicate
|
||||||
* @n: the maximum number of bytes to copy from @str
|
* @n: the maximum number of bytes to copy from @str
|
||||||
*
|
*
|
||||||
* Duplicates the first @n bytes of a string, returning a newly-allocated
|
* Duplicates the first @n bytes of a string, returning a newly-allocated
|
||||||
@ -407,7 +407,7 @@ g_memdup2 (gconstpointer mem,
|
|||||||
* To copy a number of characters from a UTF-8 encoded string,
|
* To copy a number of characters from a UTF-8 encoded string,
|
||||||
* use g_utf8_strncpy() instead.
|
* use g_utf8_strncpy() instead.
|
||||||
*
|
*
|
||||||
* Returns: a newly-allocated buffer containing the first @n bytes
|
* Returns: (nullable): a newly-allocated buffer containing the first @n bytes
|
||||||
* of @str, nul-terminated
|
* of @str, nul-terminated
|
||||||
*/
|
*/
|
||||||
gchar*
|
gchar*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user