Thread (1 message) 1 message, 1 author, 2021-06-28

Re: [PATCH] strcpy.3: Add missing 'restrict'

From: Alejandro Colomar (man-pages) <hidden>
Date: 2021-06-28 22:30:01

D'oh!

It's really been a long time without writing that email address... :-)

On 6/28/21 10:38 PM, Alejandro Colomar wrote:
quoted hunk
Signed-off-by: Alejandro Colomar <redacted>
---
  man3/strcpy.3 | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man3/strcpy.3 b/man3/strcpy.3
index db4663ff8..545e86107 100644
--- a/man3/strcpy.3
+++ b/man3/strcpy.3
@@ -39,7 +39,7 @@ strcpy, strncpy \- copy a string
  .nf
  .B #include <string.h>
  .PP
-.BI "char *strcpy(char *restrict " dest ", const char *" src );
+.BI "char *strcpy(char *restrict " dest ", const char *restrict " src );
  .BI "char *strncpy(char *restrict " dest ", const char *restrict " src \
  ", size_t " n );
  .fi

-- 
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help