* src/system.h: Provide default declarations for stpcpy, strndup,

and strnlen.
This commit is contained in:
Akim Demaille
2001-08-10 09:35:50 +00:00
parent a940e84e29
commit b77b9ee0a3
2 changed files with 29 additions and 4 deletions

View File

@@ -73,6 +73,26 @@ extern int errno;
# define PARAMS(p) ()
#endif
/*---------------------.
| Missing prototypes. |
`---------------------*/
#if !HAVE_DECL_STPCPY
char *stpcpy PARAMS ((char *dest, const char *src));
#endif
#if !HAVE_DECL_STRNDUP
char *strndup PARAMS ((const char *s, size_t size));
#endif
#if !HAVE_DECL_STRNLEN
size_t strnlen PARAMS ((const char *s, size_t maxlen));
#endif
/*-----------------.
| GCC extensions. |
`-----------------*/