Function

Gntutil_onscreen_width

Declaration [src]

int
gnt_util_onscreen_width (
  const char* start,
  const char* end
)

Description [src]

Get the onscreen width of a string, or a substring.

Parameters

start

Type: const char*

The beginning of the string.

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

Type: const char*

The end of the string. The width returned is the width up to (but not including) end. If end is NULL, then start is considered as a NULL-terminated string.

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

Return value

Type: int

The on-screen width of the string.