summaryrefslogtreecommitdiffstats
path: root/util/strgutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/strgutil.c')
-rw-r--r--util/strgutil.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/util/strgutil.c b/util/strgutil.c
index b517ed5b6..daeefe8ae 100644
--- a/util/strgutil.c
+++ b/util/strgutil.c
@@ -61,3 +61,20 @@ memistr( char *buf, size_t buflen, const char *sub )
return NULL ;
}
+
+/*********************************************
+ ********** missing string functions *********
+ *********************************************/
+
+#ifndef HAVE_STPCPY
+char *
+stpcpy(char *a,const char *b)
+{
+ while( *b )
+ *a++ = *b++;
+ *a = 0;
+
+ return (char*)a;
+}
+#endif
+