smtp_client_args_exists_and_fetch

March 26, 2020 Contributors

Name

smtp_client_args_exists_and_fetch — Check for the existence of and fetch an argument from an smtp_client_args structure

Synopsis

#include "smtp.h"

| int **smtp_client_args_exists_and_fetch** ( | args, |   |
|   | extension, |   |
|   | value); |   |

smtp_client_args * <var class="pdparam">args</var>;
const char * <var class="pdparam">extension</var>;
const char ** <var class="pdparam">value</var>;

Description

Check for the existence of and fetch an argument from an smtp_client_args structure. For a description of this struct see “smtp_client_args”.

Parameters

args

The args structure to query.

extension

The extension name to query.

value

Where to place the pointer to the value of the extension.

Return Values

On success, this function returns non-zero and stores the value of the extension (if any) in value. On failure, it returns zero and does nothing to value.

Threading

It is legal to call this function in any thread.

See Also

SMTP-related Functions and smtp_client_args_add