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
811c3da2
...
811c3da231c46d3a5696961f55b596efa679a9eb
authored
2003-09-25 14:06:47 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(util_slist_remove): New function.
1 parent
29ff187a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
mail/util.c
mail/util.c
View file @
811c3da
...
...
@@ -741,6 +741,25 @@ util_slist_add (list_t *list, char *value)
list_append
(
*
list
,
p
);
}
static
int
comp
(
const
void
*
item
,
const
void
*
data
)
{
return
strcmp
((
char
*
)
item
,
(
char
*
)
data
);
}
void
util_slist_remove
(
list_t
*
list
,
char
*
value
)
{
char
*
p
;
list_comparator_t
cp
;
if
(
!*
list
)
return
;
cp
=
list_set_comparator
(
*
list
,
comp
);
list_remove
(
*
list
,
value
);
list_set_comparator
(
*
list
,
cp
);
}
void
util_slist_destroy
(
list_t
*
list
)
{
...
...
Please
register
or
sign in
to post a comment