diff options
author | des <des@FreeBSD.org> | 2000-05-25 16:46:09 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2000-05-25 16:46:09 +0000 |
commit | 59892af9b116e3fa452851819517a361c4ab2b0e (patch) | |
tree | efdcc8e69a40d6b4a084ebc71bca62e3be76c214 /lib/libfetch/fetch.3 | |
parent | 96ab0c2c8f9f2ca7d3466f5a45d469ba0224c598 (diff) | |
download | FreeBSD-src-59892af9b116e3fa452851819517a361c4ab2b0e.zip FreeBSD-src-59892af9b116e3fa452851819517a361c4ab2b0e.tar.gz |
Add (and document) fetchMakeURL()
Diffstat (limited to 'lib/libfetch/fetch.3')
-rw-r--r-- | lib/libfetch/fetch.3 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libfetch/fetch.3 b/lib/libfetch/fetch.3 index 7c0ca07..4b6af26 100644 --- a/lib/libfetch/fetch.3 +++ b/lib/libfetch/fetch.3 @@ -28,6 +28,7 @@ .Dt FETCH 3 .Os .Sh NAME +.Nm fetchMakeURL , .Nm fetchParseURL , .Nm fetchFreeURL , .Nm fetchGetURL , @@ -58,6 +59,8 @@ .Fd #include <stdio.h> .Fd #include <fetch.h> .Ft struct url * +.Fn fetchMakeURL "char *scheme" "char *host" "int port" "char *doc" "char *user" "char *pwd" +.Ft struct url * .Fn fetchParseURL "char *URL" .Ft void .Fn fetchFreeURL "struct url *URL" @@ -120,8 +123,10 @@ all URL schemes. For instance, the file scheme only needs the <scheme> and <document> components. .Pp +.Fn fetchMakeURL +and .Fn fetchParseURL -returns a pointer to a +return a pointer to a .Fa url structure, which is defined as follows in .Aq Pa fetch.h : @@ -143,6 +148,8 @@ struct url { .Ed .Pp The pointer returned by +.Fn fetchMakeURL +or .Fn fetchParseURL should be freed using .Fn fetchFreeURL . |