diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 534f9f95f..f6db2cbf7 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,8 @@ +2003-05-28 Matthias Clasen + + * glib/tmpl/string_utils.sgml: Document that g_strdup() and + g_strndup() accept NULL. (#106987, Christian Biere) + 2003-04-18 Matthias Clasen * gobject/tmpl/signals.sgml: Correct the documentation diff --git a/docs/reference/glib/tmpl/string_utils.sgml b/docs/reference/glib/tmpl/string_utils.sgml index 463b1f873..b64d6c7aa 100644 --- a/docs/reference/glib/tmpl/string_utils.sgml +++ b/docs/reference/glib/tmpl/string_utils.sgml @@ -27,6 +27,7 @@ in order to use the printf() functions. Duplicates a string. +If @str is %NULL it returns %NULL. The returned string should be freed when no longer needed. @@ -39,6 +40,7 @@ The returned string should be freed when no longer needed. Duplicates the first @n characters of a string, returning a newly-allocated buffer @n + 1 characters long which will always be nul-terminated. If @str is less than @n characters long the buffer is padded with nuls. +If @str is %NULL it returns %NULL. The returned value should be freed when no longer needed.