diff options
author | DJ Delorie <dj@delorie.com> | 2005-05-28 19:49:24 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2005-05-28 19:49:24 +0000 |
commit | c290efe9e07cfca59f9dde51f536a6d7f9bbf4a2 (patch) | |
tree | 6141c2d5d5b657ed52fa821e3477295d67355028 /include/libiberty.h | |
parent | ae4aadf858609ca9ba11cfdc230f5e77b62a29b4 (diff) | |
download | gdb-c290efe9e07cfca59f9dde51f536a6d7f9bbf4a2.tar.gz |
merge from gcc
Diffstat (limited to 'include/libiberty.h')
-rw-r--r-- | include/libiberty.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h index 9af981cd74e..75cbedc23dd 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -531,6 +531,16 @@ extern int vasprintf (char **, const char *, va_list) ATTRIBUTE_PRINTF(2,0); #endif +#if defined(HAVE_DECL_SNPRINTF) && !HAVE_DECL_SNPRINTF +/* Like sprintf but prints at most N characters. */ +extern int snprintf (char *, size_t, const char *, ...) ATTRIBUTE_PRINTF_3; +#endif + +#if defined(HAVE_DECL_VSNPRINTF) && !HAVE_DECL_VSNPRINTF +/* Like vsprintf but prints at most N characters. */ +extern int vsnprintf (char *, size_t, const char *, va_list); +#endif + #define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0])) /* Drastically simplified alloca configurator. If we're using GCC, |