summaryrefslogtreecommitdiffstats
path: root/lib/libc/string
diff options
context:
space:
mode:
authorhoek <hoek@FreeBSD.org>1999-12-28 14:47:00 +0000
committerhoek <hoek@FreeBSD.org>1999-12-28 14:47:00 +0000
commitff58456bafedde9aac0eb81d46b84ba3c2ab4644 (patch)
tree327a757863be3099aed49807266b9f28202dd4ac /lib/libc/string
parente4beaa24b29347849b4a8aa495c8b7a243a9716a (diff)
downloadFreeBSD-src-ff58456bafedde9aac0eb81d46b84ba3c2ab4644.zip
FreeBSD-src-ff58456bafedde9aac0eb81d46b84ba3c2ab4644.tar.gz
Avoid the potentially confusing term "a null pointer" and say "the NULL
pointer" instead. The potential confusion arises because the string/*.3 pages use the term "null-terminated string" (which is permissable). Moreover, this also makes these two manpages more consistent with the other string/*.3 manpages.
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/strrchr.32
-rw-r--r--lib/libc/string/strtok.34
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/string/strrchr.3 b/lib/libc/string/strrchr.3
index c44996a..99f46d6 100644
--- a/lib/libc/string/strrchr.3
+++ b/lib/libc/string/strrchr.3
@@ -67,7 +67,7 @@ The
.Fn strrchr
function
returns a pointer to the character,
-or a null
+or the NULL
pointer if
.Fa c
does not occur anywhere in
diff --git a/lib/libc/string/strtok.3 b/lib/libc/string/strtok.3
index 26b3a1d..3a0b77d 100644
--- a/lib/libc/string/strtok.3
+++ b/lib/libc/string/strtok.3
@@ -80,7 +80,7 @@ The first time that
is called,
.Fa str
should be specified; subsequent calls, wishing to obtain further tokens
-from the same string, should pass a null pointer instead.
+from the same string, should pass the NULL pointer instead.
The separator string,
.Fa sep ,
must be supplied each time, and may change between calls.
@@ -105,7 +105,7 @@ return a pointer to the beginning of each subsequent token in the string,
after replacing the token itself with a
.Dv NUL
character.
-When no more tokens remain, a null pointer is returned.
+When no more tokens remain, the NULL pointer is returned.
.Sh EXAMPLE
The following uses
.Fn strtok_r
OpenPOWER on IntegriCloud