get_url_schema()
#
Extract the schema from a URL.
Prototype
PUBLIC char *get_url_schema(
const char *url
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The URL to extract the schema from. |
Return Value
Returns a newly allocated string containing the URL schema, or NULL
on failure. The caller is responsible for freeing the string.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples