C
BYTE* HTTPGetROMArg( BYTE* cData, ROM BYTE* cArg );
Description
Searches through a data array to find the value associated with a given argument. It can be used to find form field values in data received over GET or POST.
The end of data is assumed to be reached when a null name parameter is encountered. This requires the string to have an even number of null-terminated strings, followed by an additional null terminator.
Preconditions
The data array has a valid series of null terminated name/value pairs.
Parameters
Parameters |
Description |
data |
the buffer to search |
arg |
the name of the argument to find |
Returns
A pointer to the argument value, or NULL if not found.
Remarks
This function is aliased to HTTPGetArg on non-PIC18 platforms.