From 698d5a31a4ebe531737cd6f545ac15ff26b06838 Mon Sep 17 00:00:00 2001 From: robert Date: Wed, 14 Aug 2002 22:59:22 +0000 Subject: - 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. --- lib/libc/string/strncpy.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/libc/string/strncpy.c') 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; -- cgit v1.1