diff options
author | robert <robert@FreeBSD.org> | 2002-08-14 22:59:22 +0000 |
---|---|---|
committer | robert <robert@FreeBSD.org> | 2002-08-14 22:59:22 +0000 |
commit | 698d5a31a4ebe531737cd6f545ac15ff26b06838 (patch) | |
tree | 9df4940afbb539047f1629f3d07676734213430e /lib/libc/string/strncpy.c | |
parent | 6e77bfc7bdee4ede5316f67cff39a530b30b75b3 (diff) | |
download | FreeBSD-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/strncpy.c')
-rw-r--r-- | lib/libc/string/strncpy.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libc/string/strncpy.c b/lib/libc/string/strncpy.c index 771ebe6..90f8482 100644 --- a/lib/libc/string/strncpy.c +++ b/lib/libc/string/strncpy.c @@ -47,10 +47,7 @@ __FBSDID("$FreeBSD$"); * Return dst. */ char * -strncpy(dst, src, n) - char *dst; - const char *src; - size_t n; +strncpy(char *__restrict dst, const char *__restrict src, size_t n) { if (n != 0) { char *d = dst; |