rfc2822_new_headerf

March 26, 2020 Contributors

Name

rfc2822_new_headerf — Create a new header using a format specifier

Synopsis

#include "rfc2822_parser.h"

| rfc2822_field * **rfc2822_new_headerf** ( | name, |   |
|   | fmt, |   |
|   | ); |   |

const char * <var class="pdparam">name</var>;
const char * <var class="pdparam">fmt</var>;
<var class="pdparam">...</var>;

Description

Create a new header using a format specifier. For example:

new_hdr = rfc2822_new_headerf("Content-Type", "%s", mimetype);

Remove headers using rfc2822_remove_header.

Parameters

name

The name of the new header.

fmt

The string with embedded format specifier(s).

Variable argument.

Return Values

This function returns a rfc2822_field.

Threading

It is legal to call this function in the thread.

See Also

rfc2822_new_header and rfc2822_remove_header