istream_extract_matched_data()#
Extracts the matched data from the input stream istream_h if the matching condition is met.
Prototype
char *istream_extract_matched_data(
istream_h istream,
size_t *len
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
The input stream handle from which the matched data is extracted. |
|
|
Pointer to store the length of the extracted data. |
Return Value
Returns a pointer to the extracted data if a match is found, otherwise returns NULL. The caller does not own the returned pointer.
Notes
If no match is found, the function returns NULL. The extracted data is not copied, and the pointer references internal memory.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples