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 const char*
 

The string.

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

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

w 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

Returns: const char*
 

The string after len offset.

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