aboutsummaryrefslogtreecommitdiff
path: root/manual/string.texi
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-07-20 23:49:24 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-07-20 23:49:24 +0000
commitb5982523b120586c33c8b9d47dcbbc3edfaec064 (patch)
tree06cc20bdc3be75eb6b10041d79ecc3e88dfe95da /manual/string.texi
parentb3404dbdebb977f0f8d6099fa466ebbe6eb9157e (diff)
downloadglibc-b5982523b120586c33c8b9d47dcbbc3edfaec064.zip
glibc-b5982523b120586c33c8b9d47dcbbc3edfaec064.tar.gz
glibc-b5982523b120586c33c8b9d47dcbbc3edfaec064.tar.bz2
Document va_copy in preference to __va_copy.
Diffstat (limited to 'manual/string.texi')
-rw-r--r--manual/string.texi5
1 files changed, 1 insertions, 4 deletions
diff --git a/manual/string.texi b/manual/string.texi
index 831873b..2844bc6 100644
--- a/manual/string.texi
+++ b/manual/string.texi
@@ -824,7 +824,6 @@ to use @code{strcat}/@code{wcscat}. A lot of time is wasted finding the
end of the destination string so that the actual copying can start.
This is a common example:
-@cindex __va_copy
@cindex va_copy
@smallexample
/* @r{This function concatenates arbitrarily many strings. The last}
@@ -838,9 +837,7 @@ concat (const char *str, @dots{})
char *result;
va_start (ap, str);
- /* @r{Actually @code{va_copy}, but this is the name more gcc versions}
- @r{understand.} */
- __va_copy (ap2, ap);
+ va_copy (ap2, ap);
/* @r{Determine how much space we need.} */
for (s = str; s != NULL; s = va_arg (ap, const char *))