sieve_next_string_arg

March 26, 2020 Contributors

Name

sieve_next_string_arg — Return the next string argument

Synopsis

#include "sieve/ecsieve.h"

| int **sieve_next_string_arg** ( | arg, |   |
|   | iter, |   |
|   | str, |   |
|   | len); |   |

SIEVEARGS * <var class="pdparam">arg</var>;
sieve_string_arg_iterator * <var class="pdparam">iter</var>;
char ** <var class="pdparam">str</var>;
int * <var class="pdparam">len</var>;

Description

Return the next string argument.

Parameters

arg

The argument list.

iter

The iterator. The data type of this parameter is defined as follows: typedef int sieve_string_arg_iterator;

str

The pointer that will point to the next string argument.

len

The length of the returned string.

Return Values

On success this function returns 1; on failure, 0.

Threading

It is legal to call this function in the thread.

See Also

sieve_parse_args