mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +01:00
* strgutil.c (pop_strlist): New function to pop the head off of a strlist.
This commit is contained in:
parent
08d65bc8ca
commit
7226fdf27a
@ -1,3 +1,8 @@
|
|||||||
|
2002-06-14 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* strgutil.c (pop_strlist): New function to pop the head off of a
|
||||||
|
strlist.
|
||||||
|
|
||||||
2002-06-05 Timo Schulz <ts@winpt.org>
|
2002-06-05 Timo Schulz <ts@winpt.org>
|
||||||
|
|
||||||
* fileutil.c (is_file_compressed): Corrected the magic values
|
* fileutil.c (is_file_compressed): Corrected the magic values
|
||||||
|
@ -168,7 +168,23 @@ strlist_last( STRLIST node )
|
|||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char *
|
||||||
|
pop_strlist( STRLIST *list )
|
||||||
|
{
|
||||||
|
char *str=NULL;
|
||||||
|
STRLIST sl=*list;
|
||||||
|
|
||||||
|
if(sl)
|
||||||
|
{
|
||||||
|
str=m_alloc(strlen(sl->d)+1);
|
||||||
|
strcpy(str,sl->d);
|
||||||
|
|
||||||
|
*list=sl->next;
|
||||||
|
m_free(sl);
|
||||||
|
}
|
||||||
|
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
|
||||||
/****************
|
/****************
|
||||||
* look for the substring SUB in buffer and return a pointer to that
|
* look for the substring SUB in buffer and return a pointer to that
|
||||||
|
Loading…
x
Reference in New Issue
Block a user