Function pfwl_field_array_get_pair

Function Documentation

uint8_t pfwl_field_array_get_pair(pfwl_field_t *fields, pfwl_field_id_t id, size_t position, pfwl_pair_t *pair)

pfwl_field_array_get_pair Extracts a pair in a specific position, from a specific array field.

Return

0 if the field was present, 1 otherwise. If 1 is returned, ‘pair’ is not set.

Parameters
  • fields: The list of fields.

  • id: The field identifier.

  • position: The position in the array.

  • pair: The returned pair.