The terminating character in strings is NUL', not
NULL'.
This commit is contained in:
parent
4030c2da9d
commit
1fc752bc49
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user