rfc2822_find_first_header

March 26, 2020

Name

rfc2822_find_first_header — Return the first header with the specified name

Synopsis

#include "rfc2822_parser.h"

| rfc2822_field **rfc2822_find_first_header** ( | ctx, |   |
|   | header_name); |   |

rfc2822_context * <var class="pdparam">ctx</var>;
const char * <var class="pdparam">header_name</var>;

Description

Return the first header with the specified name.

Parameters

ctx

For more information about this struct see rfc2822_context.

header

The name of the header.

Return Values

On success this function returns the first header; on failure, it returns NULL. For a definition of this struct see rfc2822_field. When you have finished with this struct use rfc2822_free_header to free it.

Threading

It is legal to call this function in any thread.

See Also

rfc2822_find_next_header