文件名称:liburl:用C编写的URL解析器库
文件大小:7KB
文件格式:ZIP
更新时间:2024-06-02 13:06:09
C
C语言中的URL解析器库 例子 # include < stdio> # include < url> int main () { struct url_t *url = url_parse ( " http://example.com/path/to/file.html " ); printf ( " PROTOCOL: %s \n " , url-> protocol ); printf ( " HOST: %s \n " , url-> host ); printf ( " PORT: %s \n " , url-> port ); printf ( " PATH: %s \n " , url-> path ); url_free (url); return 0 ; } PROTOCOL: http HOST: example.com POR
【文件预览】:
liburl-master
----.gitmodules(113B)
----LICENSE.txt(1KB)
----src()
--------url_parse.c(2KB)
--------url.c(463B)
--------url_utils.c(173B)
----script()
--------build.sh(55B)
----CMakeLists.txt(1KB)
----.travis.yml(246B)
----test()
--------url_test.cpp(849B)
----README.md(2KB)
----.gitignore(12B)
----include()
--------url.h(343B)
----vendor()
--------gtest()