rfc2822_remove_header

March 26, 2020 Contributors

Name

rfc2822_remove_header — Create a new header

Synopsis

#include "rfc2822_parser.h"

| int **rfc2822_remove_header** ( | ctx, |   |
|   | h); |   |

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

Description

Remove a header created using rfc2822_new_header.

Note

When you remove a header, the memory associated with it is freed; be sure to deal with any external references to that header.

Parameters

ctx

The rfc2822_context associated with the header.

h

The header you wish to remove.

Return Values

This function returns the index of the removed header.

Threading

It is legal to call this function in any thread.

See Also

“rfc2822_context”