Function

Purpletag_parse

Declaration [src]

void
purple_tag_parse (
  const char* tag,
  char** name,
  char** value
)

Description [src]

Splits a tag into its name and value parts.

Available since:3.0.0

Parameters

tag const char*
 

The tag.

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

An optional return address for the name of the tag.

 The argument will be set by the function.
 The argument can be set to NULL.
 The argument can be NULL.
 The called function takes ownership of the data, and is responsible for freeing it.
 The value is a NUL terminated UTF-8 string.
value char**
 

An optional return address for the value of the tag.

 The argument will be set by the function.
 The argument can be set to NULL.
 The argument can be NULL.
 The called function takes ownership of the data, and is responsible for freeing it.
 The value is a NUL terminated UTF-8 string.