diff options
author | Werner Koch <[email protected]> | 1998-01-13 19:04:23 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1998-01-13 19:04:23 +0000 |
commit | 922e57dd57ca46c5368c7044ca98b1ddf085828d (patch) | |
tree | caa0679030553da56e498bbac75d409bd3841a18 /util/strgutil.c | |
parent | started with trust stuff (diff) | |
download | gnupg-922e57dd57ca46c5368c7044ca98b1ddf085828d.tar.gz gnupg-922e57dd57ca46c5368c7044ca98b1ddf085828d.zip |
*** empty log message ***
Diffstat (limited to '')
-rw-r--r-- | util/strgutil.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/util/strgutil.c b/util/strgutil.c index ecdcb750c..cb80c57ab 100644 --- a/util/strgutil.c +++ b/util/strgutil.c @@ -37,6 +37,18 @@ free_strlist( STRLIST sl ) } } + +void +add_to_strlist( STRLIST *list, const char *string ) +{ + STRLIST sl; + + sl = m_alloc( sizeof *sl + strlen(string)); + strcpy(sl->d, string); + sl->next = *list; + *list = sl; +} + /**************** * look for the substring SUB in buffer and return a pointer to that * substring in BUF or NULL if not found. |