mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
bug fixes
This commit is contained in:
parent
4c0c155922
commit
bc5789665a
37 changed files with 949 additions and 137 deletions
|
@ -50,6 +50,28 @@ add_to_strlist( STRLIST *list, const char *string )
|
|||
*list = sl;
|
||||
}
|
||||
|
||||
|
||||
|
||||
STRLIST
|
||||
strlist_prev( STRLIST head, STRLIST node )
|
||||
{
|
||||
STRLIST n;
|
||||
|
||||
for(n=NULL; head && head != node; head = head->next )
|
||||
n = head;
|
||||
return n;
|
||||
}
|
||||
|
||||
STRLIST
|
||||
strlist_last( STRLIST node )
|
||||
{
|
||||
if( node )
|
||||
for( ; node->next ; node = node->next )
|
||||
;
|
||||
return node;
|
||||
}
|
||||
|
||||
|
||||
/****************
|
||||
* look for the substring SUB in buffer and return a pointer to that
|
||||
* substring in BUF or NULL if not found.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue