mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-28 18:16:34 +02:00
Document that g_strdup() and g_strndup() accept NULL. (#106987, Christian
2003-05-28 Matthias Clasen <maclas@gmx.de> * glib/tmpl/string_utils.sgml: Document that g_strdup() and g_strndup() accept NULL. (#106987, Christian Biere)
This commit is contained in:
committed by
Matthias Clasen
parent
8367049586
commit
c8fd4c22c9
@@ -1,3 +1,8 @@
|
|||||||
|
2003-05-28 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/tmpl/string_utils.sgml: Document that g_strdup() and
|
||||||
|
g_strndup() accept NULL. (#106987, Christian Biere)
|
||||||
|
|
||||||
2003-04-18 Matthias Clasen <maclas@gmx.de>
|
2003-04-18 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gobject/tmpl/signals.sgml: Correct the documentation
|
* gobject/tmpl/signals.sgml: Correct the documentation
|
||||||
|
@@ -27,6 +27,7 @@ in order to use the printf() functions.
|
|||||||
<!-- ##### FUNCTION g_strdup ##### -->
|
<!-- ##### FUNCTION g_strdup ##### -->
|
||||||
<para>
|
<para>
|
||||||
Duplicates a string.
|
Duplicates a string.
|
||||||
|
If @str is %NULL it returns %NULL.
|
||||||
The returned string should be freed when no longer needed.
|
The returned string should be freed when no longer needed.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@@ -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
|
Duplicates the first @n characters of a string, returning a newly-allocated
|
||||||
buffer @n + 1 characters long which will always be nul-terminated.
|
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 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.
|
The returned value should be freed when no longer needed.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user