aboutsummaryrefslogtreecommitdiffstats
path: root/util/strgutil.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-01-13 19:04:23 +0000
committerWerner Koch <[email protected]>1998-01-13 19:04:23 +0000
commit922e57dd57ca46c5368c7044ca98b1ddf085828d (patch)
treecaa0679030553da56e498bbac75d409bd3841a18 /util/strgutil.c
parentstarted with trust stuff (diff)
downloadgnupg-922e57dd57ca46c5368c7044ca98b1ddf085828d.tar.gz
gnupg-922e57dd57ca46c5368c7044ca98b1ddf085828d.zip
*** empty log message ***
Diffstat (limited to '')
-rw-r--r--util/strgutil.c12
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.