Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
ae646ae4
...
ae646ae4de46f802ec0b2c923384859e3f0b3447
authored
2002-05-09 01:49:56 +0000
by
Sam Roberts
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
url_is_scheme(url_t, const char*): new function
1 parent
1a68a669
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
include/mailutils/url.h
mailbox/url.c
include/mailutils/url.h
View file @
ae646ae
...
...
@@ -38,6 +38,8 @@ extern int url_get_path __P ((const url_t, char *, size_t, size_t *));
extern
int
url_get_query
__P
((
const
url_t
,
char
*
,
size_t
,
size_t
*
));
extern
const
char
*
url_to_string
__P
((
const
url_t
));
extern
int
url_is_scheme
__P
((
url_t
,
const
char
*
scheme
));
extern
int
url_is_same_scheme
__P
((
url_t
,
url_t
));
extern
int
url_is_same_user
__P
((
url_t
,
url_t
));
extern
int
url_is_same_path
__P
((
url_t
,
url_t
));
...
...
mailbox/url.c
View file @
ae646ae
...
...
@@ -429,6 +429,14 @@ url_to_string (const url_t url)
return
url
->
name
;
}
int
url_is_scheme
(
url_t
url
,
const
char
*
scheme
)
{
if
(
url
&&
scheme
&&
url
->
scheme
&&
strcasecmp
(
url
->
scheme
,
scheme
)
==
0
)
return
1
;
return
0
;
}
int
url_is_same_scheme
(
url_t
url1
,
url_t
url2
)
{
...
...
Please
register
or
sign in
to post a comment