HTTPc_FormAddKeyVal
Adds a Key-Value Pair object to the form table.
Files
http-c.h/http-c.c
Prototype
void HTTPc_FormAddKeyVal (HTTPc_FORM_TBL_FIELD *p_form_tbl, HTTPc_KEY_VAL *p_key_val, HTTPc_ERR *p_err);
Arguments
p_form_tbl
Pointer to the form table into which to include the key-value pair.
p_key_val
Pointer to the key-value pair to put in the table.
p_err
Pointer to variable that will receive the return error code from this function:
HTTPc_ERR_NONE
HTTPc_ERR_NULL_PTR
HTTPc_ERR_FORM_FIELD_INVALID
Returned Values
None.
Required Configuration
The preprocessor macro configuration HTTPc_CFG_FORM_EN
must be set to DEF_ENABLED
.
Notes / Warnings
See the example here for a example on how to use this function correctly.