summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strcpy.3
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/strcpy.3
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/strcpy.3')
-rw-r--r--lib/libc/string/strcpy.34
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/string/strcpy.3 b/lib/libc/string/strcpy.3
index ae399ab..9a61727 100644
--- a/lib/libc/string/strcpy.3
+++ b/lib/libc/string/strcpy.3
@@ -47,9 +47,9 @@
.Sh SYNOPSIS
.In string.h
.Ft char *
-.Fn strcpy "char *dst" "const char *src"
+.Fn strcpy "char *restrict dst" "const char *restrict src"
.Ft char *
-.Fn strncpy "char *dst" "const char *src" "size_t len"
+.Fn strncpy "char *restrict dst" "const char *restrict src" "size_t len"
.Sh DESCRIPTION
The
.Fn strcpy
OpenPOWER on IntegriCloud