Method

GLibIOChannelget_line_term

Declaration

const gchar*
g_io_channel_get_line_term (
  GIOChannel* channel,
  gint* length
)

Description

This returns the string that GIOChannel uses to determine where in the file a line break occurs. A value of NULL indicates autodetection.

Parameters

length gint*
 

A location to return the length of the line terminator.

 The data is owned by the caller of the function.

Return value

Returns: utf8
 

The line termination string. This value is owned by GLib and must not be freed.

 The data is owned by the instance.
 The string is a NUL terminated UTF-8 string.