rfc2822_remove_header
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.
- ctx
-
The rfc2822_context associated with the header.
- h
-
The header you wish to remove.
This function returns the index of the removed header.
It is legal to call this function in any thread.