Name

uri_destroy — free the resources used by a URI

Library

URI parsing library (liburi, -luri)

Synopsis

#include <liburi.h>

int uri_destroy( URI *uri);

Description

The uri_destroy function frees a URI, releasing any resources used by it. The URI must previously have been created using uri_create_str(3) or uri_create_uri(3).

If uri is NULL, uri_destroy does nothing, and returns successfully.

Parameters

uri

The URI to free.

Return value

uri_destroy always returns zero.

See also

liburi(3), uri_create_str(3), uri_create_uri(3).