Function pfwl_field_string_get

Function Documentation

uint8_t pfwl_field_string_get(pfwl_field_t *fields, pfwl_field_id_t id, pfwl_string_t *string)

pfwl_field_string_get Extracts a specific string field from a list of fields.

Return

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

Parameters
  • fields: The list of fields.

  • id: The field identifier.

  • string: The extracted field.