mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
updated g_strndup.
2000-07-01 Damon Chaplin <damon@helixcode.com> * tmpl/string_utils.sgml: updated g_strndup.
This commit is contained in:
parent
3250d07cbc
commit
0df07abdb1
@ -1,3 +1,7 @@
|
|||||||
|
2000-07-01 Damon Chaplin <damon@helixcode.com>
|
||||||
|
|
||||||
|
* tmpl/string_utils.sgml: updated g_strndup.
|
||||||
|
|
||||||
2000-06-11 Damon Chaplin <damon@helixcode.com>
|
2000-06-11 Damon Chaplin <damon@helixcode.com>
|
||||||
|
|
||||||
* tmpl/messages.sgml: updated a bit more.
|
* tmpl/messages.sgml: updated a bit more.
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2000-07-01 Damon Chaplin <damon@helixcode.com>
|
||||||
|
|
||||||
|
* tmpl/string_utils.sgml: updated g_strndup.
|
||||||
|
|
||||||
2000-06-11 Damon Chaplin <damon@helixcode.com>
|
2000-06-11 Damon Chaplin <damon@helixcode.com>
|
||||||
|
|
||||||
* tmpl/messages.sgml: updated a bit more.
|
* tmpl/messages.sgml: updated a bit more.
|
||||||
|
@ -27,15 +27,15 @@ The returned string should be freed when no longer needed.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION g_strndup ##### -->
|
<!-- ##### FUNCTION g_strndup ##### -->
|
||||||
<para>
|
<para>
|
||||||
Duplicates the first @n characters of a string, and null-terminates it.
|
Duplicates the first @n characters of a string, returning a newly-allocated
|
||||||
If @str is NULL, NULL is returned.
|
buffer @n + 1 characters long which will always be null-terminated.
|
||||||
The returned string should be freed when no longer needed.
|
If @str is less than @n characters long the buffer is padded with nulls.
|
||||||
|
The returned value should be freed when no longer needed.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@str: the string to duplicate part of.
|
@str: the string to duplicate part of.
|
||||||
@n: the number of characters to copy, which must be less than or equal to the
|
@n: the maximum number of characters to copy from @str.
|
||||||
length of @str.
|
@Returns: a newly-allocated buffer containing the first @n characters of @str,
|
||||||
@Returns: a newly-allocated copy of the first @n characters of @str,
|
|
||||||
null-terminated.
|
null-terminated.
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user