summaryrefslogtreecommitdiff
path: root/libiberty/functions.texi
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2003-04-16 23:09:21 +0000
committerDJ Delorie <dj@delorie.com>2003-04-16 23:09:21 +0000
commit77d2dec4db151a11881dee32b8e0d97d7193bc4f (patch)
treed4ce4e4561197cb8861935048b6f5869e45dbc63 /libiberty/functions.texi
parent51da00a73df371206bc02fb759286b50e9437dd7 (diff)
downloadgdb-77d2dec4db151a11881dee32b8e0d97d7193bc4f.tar.gz
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 bb35549df19..4261d864676 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)