Method

GLibIOChannelwrite

Declaration

GIOError
g_io_channel_write (
  GIOChannel* channel,
  const gchar* buf,
  gsize count,
  gsize* bytes_written
)

Description

Writes data to a GIOChannel.

Deprecated since:2.2

Use g_io_channel_write_chars() instead.

Parameters

buf const gchar*
 

The buffer containing the data to write.

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

The number of bytes to write.

bytes_written gsize*
 

The number of bytes actually written.

 The data is owned by the caller of the function.

Return value

Returns: GIOError
 

G_IO_ERROR_NONE if the operation was successful.