Function

Ibissource_get_prefix

since: 0.8

Declaration [src]

char*
ibis_source_get_prefix (
  const char* source,
  const char* prefixes
)

Description [src]

Gets the prefixes from source.

prefixes should be in descending order, from the prefix that gives the most privileges to the prefix that gives the least. The server will send them in this order. See PREFIX Parameter for more information.

Available since: 0.8

Parameters

source

Type: const char*

The source.

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

Type: const char*

The list of valid prefixes.

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

Return value

Type: char*

The prefixes from source if found, otherwise NULL.

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