Skip to main content

Name

validate_context_exists — Determine if the specified validation context key exists

Synopsis

#include "validate.h"

| int **validate_context_exists** ( | vctx, |   | |   | which, |   | |   | key); |   |

validate_context * <var class="pdparam">vctx</var>; int <var class="pdparam">which</var>; const char * <var class="pdparam">key</var>;

Description

Determine if the specified validation context key exists.

Parameters

vctx

The validation context. For documentation of this data structure see “validate_context”.

which

An integer, typically VCTX_MESS or VCTX_CONN, which determines which dictionary to consult: the connection context or the message context dictionary.

key

The key to query.

Return Value

Returns 1 if the key exists, 0 if it does not exist.

Threading

It is legal to call this function in any thread.

See Also

Was this page helpful?