aboutsummaryrefslogtreecommitdiff
path: root/libiberty/functions.texi
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2003-04-16 23:09:21 +0000
committerDJ Delorie <dj@redhat.com>2003-04-16 23:09:21 +0000
commit2ed1e5cc550d2e2ec54716106d92e1398c9d6679 (patch)
treef10e0dab1d762548772bd6fb5b5819ada838a26f /libiberty/functions.texi
parent610a37459e7bcacdebf1096ad324b845af8bd4e2 (diff)
downloadgdb-2ed1e5cc550d2e2ec54716106d92e1398c9d6679.zip
gdb-2ed1e5cc550d2e2ec54716106d92e1398c9d6679.tar.gz
gdb-2ed1e5cc550d2e2ec54716106d92e1398c9d6679.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/functions.texi')
-rw-r--r--libiberty/functions.texi26
1 files changed, 26 insertions, 0 deletions
diff --git a/libiberty/functions.texi b/libiberty/functions.texi
index bb35549..4261d86 100644
--- a/libiberty/functions.texi
+++ b/libiberty/functions.texi
@@ -673,6 +673,19 @@ be the value @code{1}).
@end deftypefn
+@c snprintf.c:28
+@deftypefn Supplemental int snprintf (char *@var{buf}, size_t @var{n}, const char *@var{format}, ...)
+
+This function is similar to sprintf, but it will print at most @var{n}
+characters. On error the return value is -1, otherwise it returns the
+number of characters that would have been printed had @var{n} been
+sufficiently large, regardless of the actual value of @var{n}. Note
+some pre-C99 system libraries do not implement this correctly so users
+cannot generally rely on the return value if the system version of
+this function is used.
+
+@end deftypefn
+
@c spaces.c:22
@deftypefn Extension char* spaces (int @var{count})
@@ -929,6 +942,19 @@ nonstandard but common function @code{_doprnt}.
@end deftypefn
+@c vsnprintf.c:28
+@deftypefn Supplemental int vsnprintf (char *@var{buf}, size_t @var{n}, const char *@var{format}, va_list @var{ap})
+
+This function is similar to vsprintf, but it will print at most
+@var{n} characters. On error the return value is -1, otherwise it
+returns the number of characters that would have been printed had
+@var{n} been sufficiently large, regardless of the actual value of
+@var{n}. Note some pre-C99 system libraries do not implement this
+correctly so users cannot generally rely on the return value if the
+system version of this function is used.
+
+@end deftypefn
+
@c waitpid.c:3
@deftypefn Supplemental int waitpid (int @var{pid}, int *@var{status}, int)