summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strcat.c
diff options
context:
space:
mode:
authorrobert <robert@FreeBSD.org>2002-08-14 22:59:22 +0000
committerrobert <robert@FreeBSD.org>2002-08-14 22:59:22 +0000
commit698d5a31a4ebe531737cd6f545ac15ff26b06838 (patch)
tree9df4940afbb539047f1629f3d07676734213430e /lib/libc/string/strcat.c
parent6e77bfc7bdee4ede5316f67cff39a530b30b75b3 (diff)
downloadFreeBSD-src-698d5a31a4ebe531737cd6f545ac15ff26b06838.zip
FreeBSD-src-698d5a31a4ebe531737cd6f545ac15ff26b06838.tar.gz
- Add the 'restrict' qualifier to the definitions of the string
concatenation and copy functions using the '__restrict' macro. This is to satisfy IEEE Std 1003-1.2001. - Use ANSI-C function definitions. - Add the 'restrict' keyword to the manual pages, too.
Diffstat (limited to 'lib/libc/string/strcat.c')
-rw-r--r--lib/libc/string/strcat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/string/strcat.c b/lib/libc/string/strcat.c
index 2bfd7b7..f7654d6 100644
--- a/lib/libc/string/strcat.c
+++ b/lib/libc/string/strcat.c
@@ -40,9 +40,7 @@ __FBSDID("$FreeBSD$");
#include <string.h>
char *
-strcat(s, append)
- char *s;
- const char *append;
+strcat(char *__restrict s, const char *__restrict append)
{
char *save = s;
OpenPOWER on IntegriCloud