rfc2821_address_parse

March 26, 2020

Name

rfc2821_address_parse — Parse an rfc2821 address

Synopsis

#include "misc/rfc2821addr.h"

| int **rfc2821_address_parse** ( | addr, |   |
|   | addrlen, |   |
|   | ctx); |   |

const char * <var class="pdparam">addr</var>;
int <var class="pdparam">addrlen</var>;
rfc2821_ctx * <var class="pdparam">ctx</var>;

Description

Parse an rfc2821 address.

Parameters

addr

The address to be parsed.

addrlen

The length of the address.

ctx

See rfc2821_ctx.

Return Values

On success this function returns 0 and populates the rfc2821_ctx passed in. On failure this function returns -1.

Threading

It is legal to call this function in any thread.

See Also

rfc2821_address_destroy