Function

NumCosmoMathstring_ww

Declaration [src]

gchar*
ncm_string_ww (
  const gchar* msg,
  const gchar* first,
  const gchar* rest,
  guint ncols
)

Description [src]

Wraps msg at spaces into lines of at most ncols columns, each ending with a newline.

Parameters

msg

Type: const gchar*

A string.

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

Type: const gchar*

Prefix of the first line.

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

Type: const gchar*

Prefix of the other lines.

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

Type: guint

Number of columns.

Return value

Type: gchar*

The wrapped string.

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