From e1117ae4a1bfc0bb644432b41ef90fead9a731cb Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 5 Jan 1998 19:13:15 +0000 Subject: NT version compiles --- util/strgutil.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'util/strgutil.c') 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 + -- cgit v1.2.3