summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strncat.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/strncat.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/strncat.c')
-rw-r--r--lib/libc/string/strncat.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libc/string/strncat.c b/lib/libc/string/strncat.c
index cc5ab67..2cf8f83 100644
--- a/lib/libc/string/strncat.c
+++ b/lib/libc/string/strncat.c
@@ -47,10 +47,7 @@ __FBSDID("$FreeBSD$");
* are written at dst (at most n+1 bytes being appended). Return dst.
*/
char *
-strncat(dst, src, n)
- char *dst;
- const char *src;
- size_t n;
+strncat(char *__restrict dst, const char *__restrict src, size_t n)
{
if (n != 0) {
char *d = dst;
OpenPOWER on IntegriCloud