gstrfuncs: Add missing (nullable) annotations to g_strndup()

This commit is contained in:
velsinki 2024-01-25 11:25:09 +00:00 committed by Philip Withnall
parent 2d5f608454
commit 8689a1f8b7

View File

@ -395,7 +395,7 @@ g_memdup2 (gconstpointer mem,
/**
* g_strndup:
* @str: the string to duplicate
* @str: (nullable): the string to duplicate
* @n: the maximum number of bytes to copy from @str
*
* 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,
* 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
*/
gchar*