Function rc_filter_multiply#

Function Documentation#

int rc_filter_multiply(rc_filter_t f1, rc_filter_t f2, rc_filter_t *out)#

Creates a new filter ‘out’ by multiplying f1*f2.

The contents of f3 are freed safely if necessary and new memory is allocated to avoid memory leaks.

Parameters:
  • f1[in] Pointer to user’s rc_filter_t struct to be multiplied

  • f2[in] Pointer to user’s rc_filter_t struct to be multiplied

  • out[out] Pointer to newly created filter struct

Returns:

Returns 0 on success or -1 on failure.