From de635b0683ddd6456f6776e2a2905f1dedd343d6 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Sun, 28 Dec 1997 12:06:29 +0000 Subject: [PATCH] The terminating character in strings is `NUL', not `NULL'. --- lib/libc/locale/mbrune.3 | 2 +- lib/libc/string/strchr.3 | 2 +- share/man/man9/copy.9 | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libc/locale/mbrune.3 b/lib/libc/locale/mbrune.3 index 7d0f41eb805..72001f5bc99 100644 --- a/lib/libc/locale/mbrune.3 +++ b/lib/libc/locale/mbrune.3 @@ -65,7 +65,7 @@ function locates the first occurrence of in the string pointed to by .Ar string . The terminating -.Dv NULL +.Dv NUL character is considered part of the string. If .Fa rune diff --git a/lib/libc/string/strchr.3 b/lib/libc/string/strchr.3 index d2676ba1484..d139f8ee8cc 100644 --- a/lib/libc/string/strchr.3 +++ b/lib/libc/string/strchr.3 @@ -53,7 +53,7 @@ function locates the first occurrence of in the string pointed to by .Ar s . The terminating -.Dv NULL +.Dv NUL character is considered part of the string. If .Fa c diff --git a/share/man/man9/copy.9 b/share/man/man9/copy.9 index 8f80a14c57a..f43184f8952 100644 --- a/share/man/man9/copy.9 +++ b/share/man/man9/copy.9 @@ -82,24 +82,24 @@ bytes of data from the kernel-space address to the user-space address .Pa uaddr . .It Fn copystr -Copies a NULL-terminated string, at most +Copies a NUL-terminated string, at most .Pa len bytes long, from kernel-space address .Pa kfaddr to kernel-space address .Pa kdaddr . The number of bytes actually copied, including the terminating -NULL, is returned in +NUL, is returned in .Pa *done . .It Fn copyinstr -Copies a NULL-terminated string, at most +Copies a NUL-terminated string, at most .Pa len bytes long, from user-space address .Pa uaddr to kernel-space address .Pa kaddr . The number of bytes actually copied, including the terminating -NULL, is returned in +NUL, is returned in .Pa *done . .\" .It Fn copyoutstr .\" Copies a NULL-terminated string, at most