add stpcpy for solaris

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1795 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1999-07-05 22:47:57 +00:00
parent 9859c0d3d4
commit 732e067ae5
2 changed files with 14 additions and 1 deletions

View File

@ -148,6 +148,19 @@ ultostr (unsigned long val, int base)
return strdup (buf);
}
/********************************************************************\
* stpcpy for those platforms that don't have it.
\********************************************************************/
#ifndef HAVE_STPCPY
char *
stpcpy (char *dest, const char *src)
{
strcpy(dest, src);
return(dest + strlen(src));
}
#endif
/********************************************************************\
* currency & locale related stuff.
* first attempt at internationalization i18n of currency amounts

View File

@ -36,7 +36,7 @@
/* The debuging macros enable the setting of trace messages */
#include <stdio.h>
#if HAVE_NANA_H
#ifdef HAVE_NANA_H
#include <nana.h>
/* override standard system assert with nana I assertion */