Function

Gntutil_onscreen_width_to_pointer

Declaration [src]

const char*
gnt_util_onscreen_width_to_pointer (
  const char* str,
  int len,
  int* w
)

Description [src]

Computes and returns the string after a specific number of onscreen characters.

Parameters

str

Type: const char*

The string.

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

Type: int

The length to consider. If non-positive, the entire screenlength is used.

w

Type: int*

The actual width of the string up to the returned offset, if not NULL.

The data is owned by the caller of the function.

Return value

Type: const char*

The string after len offset.

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