Function

AppStreammarkup_strsplit_words

Declaration [src]

gchar**
as_markup_strsplit_words (
  const gchar* text,
  guint line_len
)

Description [src]

Splits up a long line into an array of smaller strings, each being no longer than line_len. Words are not split.

Available since:0.14.0

Parameters

text const gchar*
 

The text to split.

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

The maximum length of the output line.

Return value

Returns: An array of utf8
 

Lines, or NULL in event of an error.

 The array is NULL-terminated.
 The caller of the function takes ownership of the data, and is responsible for freeing it.
 Each element is a NUL terminated UTF-8 string.