Method

GLibIOChannelread_line_string

Declaration

GIOStatus
g_io_channel_read_line_string (
  GIOChannel* channel,
  GString* buffer,
  gsize* terminator_pos,
  GError** error
)

Description

Reads a line from a GIOChannel, using a GString as a buffer.

Parameters

buffer GString
 

A GString into which the line will be written. If buffer already contains data, the old data will be overwritten.

 The data is owned by the caller of the function.
terminator_pos gsize*
 

Location to store position of line terminator, or NULL.

 The argument can be NULL.
 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GIOStatus
 

The status of the operation.