Method

CamelInternetAddressfind_address

Declaration [src]

gint
camel_internet_address_find_address (
  CamelInternetAddress* addr,
  const gchar* address,
  const gchar** namep
)

Description [src]

Find an address by address.

Parameters

address

Type: const gchar*

Address to lookup.

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

Type: const gchar**

Holder for the matching name, or NULL, if not required.

The argument will be set by the function.
The argument can be set to NULL by the method.
The argument can be NULL.
The returned data is owned by the instance.
The value is a NUL terminated UTF-8 string.

Return value

Type: gint

The index of the address, or -1 if not found.