"Fossies" - the Fresh Open Source Software Archive 
Member "zsync-0.6.2/url.h" (16 Sep 2010, 1163 Bytes) of package /linux/privat/old/zsync-0.6.2.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "url.h" see the
Fossies "Dox" file reference documentation.
1 /*
2 * zsync - client side rsync over http
3 * Copyright (C) 2004,2005,2009 Colin Phipps <cph@moria.org.uk>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the Artistic License v2 (see the accompanying
7 * file COPYING for the full license terms), or, at your option, any later
8 * version of the same license.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * COPYING file for details.
14 */
15
16 extern const char http_scheme[];
17
18 /* Given an HTTP URL, return the path path of the URL as the return value, and
19 * return the hostname in the provided buffer (hostn, length hnlen)
20 * and, if present, return a (malloced) string buffer containing the port string.
21 * Or return NULL if not HTTP or other parsing failure.
22 */
23 char* get_http_host_port(const char* url, char* hostn, int hnlen, char** port);
24
25 char* __attribute__((pure)) make_url_absolute(const char* base, const char* url);
26
27 int __attribute__((pure)) is_url_absolute(const char* url);