Method

GioDataOutputStreamput_string

Declaration

gboolean
g_data_output_stream_put_string (
  GDataOutputStream* stream,
  const char* str,
  GCancellable* cancellable,
  GError** error
)

Description

Puts a string into the output stream.

Parameters

str

Type: const char*

A string.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
cancellable

Type: GCancellable

Optional GCancellable object, NULL to ignore.

The argument can be NULL.
The data is owned by the caller of the function.
error

Type: GError **

The return location for a GError*, or NULL.

Return value

Type: gboolean

TRUE if string was successfully added to the stream.