Commit 2ffba0e2 authored by Philip Withnall's avatar Philip Withnall

gdatainputstream: Document the returned string is always nul-terminated

Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
Reviewed-by: nobody

https://bugzilla.gnome.org/show_bug.cgi?id=742124
parent 0664b617
......@@ -1316,6 +1316,8 @@ g_data_input_stream_read_until_finish (GDataInputStream *stream,
* Note that @stop_chars may contain '\0' if @stop_chars_len is
* specified.
*
* The returned string will always be nul-terminated on success.
*
* Returns: (transfer full): a string with the data that was read
* before encountering any of the stop characters. Set @length to
* a #gsize to get the length of the string. This function will
......@@ -1446,6 +1448,8 @@ g_data_input_stream_read_upto_async (GDataInputStream *stream,
* have to use g_data_input_stream_read_byte() to get it before calling
* g_data_input_stream_read_upto_async() again.
*
* The returned string will always be nul-terminated on success.
*
* Returns: (transfer full): a string with the data that was read
* before encountering any of the stop characters. Set @length to
* a #gsize to get the length of the string. This function will
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment