You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
343 B
C
13 lines
343 B
C
2 years ago
|
#include <string.h>
|
||
|
|
||
|
/* url_to_proto - This takes in a URL, and returns the protocol.
|
||
|
Example - 'https://example.org' would return 'https'. */
|
||
|
|
||
|
char* url_to_proto(char* url);
|
||
|
|
||
|
/* url_to_hostname - This takes in a URL, and returns the hostname.
|
||
|
Example - 'https://example.org' would return 'example.org'. */
|
||
|
|
||
|
char* url_to_hostname(char* url);
|
||
|
|