sieve_arg_as_number

March 26, 2020 Contributors

Name

sieve_arg_as_number — Get the specified argument(s) as a number

Synopsis

#include "sieve/ecsieve.h"

| int **sieve_arg_as_number** ( | args, |   |
|   | number); |   |

SIEVEARGS * <var class="pdparam">args</var>;
u_int32_t * <var class="pdparam">number</var>;

Description

Get the specified argument(s) as a number.

Parameters

args

The sieve argument. For a definiton of this data type see structs.sieve_ast.

number

The number (signed 32-bit).

Return Values

This function returns 1 on success and 0 on failure.

Threading

It is legal to call this function in any thread.

See Also

sieve_parse_args