aboutsummaryrefslogtreecommitdiffstats
path: root/gpgme/util.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gpgme/util.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gpgme/util.c b/gpgme/util.c
index 2711f6be..02107330 100644
--- a/gpgme/util.c
+++ b/gpgme/util.c
@@ -61,3 +61,19 @@ _gpgme_free ( void *a )
+/*********************************************
+ ********** missing string functions *********
+ *********************************************/
+
+#ifndef HAVE_STPCPY
+char *
+stpcpy (char *a, const char *b)
+{
+ while( *b )
+ *a++ = *b++;
+ *a = 0;
+
+ return a;
+}
+#endif
+