sieve_arg_as_numeric

March 26, 2020 Contributors

Name

sieve_arg_as_numeric — Obtain a numeric Sieve argument from either a string or a number representation

Synopsis

#include "sieve/ecsieve.h"

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

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

Description

Obtain a numeric Sieve argument from either a string or a number representation.

Parameters

args

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

number

The resulting number (signed 64-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_arg_as_number and sieve_parse_args