mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 12:53:03 +00:00
* src/system.h: Provide default declarations for stpcpy, strndup,
and strnlen.
This commit is contained in:
20
src/system.h
20
src/system.h
@@ -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. |
|
||||
`-----------------*/
|
||||
|
||||
Reference in New Issue
Block a user