diff options
author | Robert Drehmel <robert@FreeBSD.org> | 2002-08-14 22:59:22 +0000 |
---|---|---|
committer | Robert Drehmel <robert@FreeBSD.org> | 2002-08-14 22:59:22 +0000 |
commit | ad906968153f7b35f2e92b49936a22f44d5aa0c0 (patch) | |
tree | 9df4940afbb539047f1629f3d07676734213430e /lib/libc/string/strcat.c | |
parent | d542f511a0b87b12a2b2459f8995921449f86c82 (diff) | |
download | src-ad906968153f7b35f2e92b49936a22f44d5aa0c0.tar.gz src-ad906968153f7b35f2e92b49936a22f44d5aa0c0.zip |
- 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.
Notes
Notes:
svn path=/head/; revision=101887
Diffstat (limited to 'lib/libc/string/strcat.c')
-rw-r--r-- | lib/libc/string/strcat.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/string/strcat.c b/lib/libc/string/strcat.c index 2bfd7b726e63..f7654d6e1fd3 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; |