shithub: plan9front

Download patch

ref: 5a23b752eb15d69bb5daeb9134fd19a77e9fab33
parent: e8259861da3a55c03491904e4d11c5c15b7577c5
author: Jacob Moody <>
date: Mon Jul 12 17:42:39 EDT 2021

strcat(2): 0 → nil in manpage in refrence to pointers

--- a/sys/man/2/strcat	Sun Jul 11 17:49:15 2021
+++ b/sys/man/2/strcat	Mon Jul 12 17:42:39 2021
@@ -161,9 +161,7 @@
 .I c
 in string
 .IR s ,
-.L 0
+or nil if
 .I c
 does not occur in the string.
 The null byte terminating a string is considered to
@@ -174,8 +172,7 @@
 .I s1
 of any byte from string
 .IR s2 ,
-.L 0
-if no byte from
+nil if no byte from
 .I s2
 exists in
 .IR s1 .
@@ -205,9 +202,7 @@
 between separate calls; subsequent calls,
 signified by
 .I s1
-.LR 0 ,
-will work through the string
+being nil, will work through the string
 .I s1
 immediately following that token.
 The separator string
@@ -215,24 +210,21 @@
 may be different from call to call.
 When no token remains in
 .IR s1 ,
-.L 0
-is returned.
+nil is returned.
 .I Strdup
 returns a pointer to a distinct copy of the null-terminated string
 .I s
 in space obtained from
 .IR malloc (2)
-.L 0
-if no space can be obtained.
+or nil if no space can be obtained.
 .I Strstr
 returns a pointer to the first occurrence of
 .I s2
 as a substring of
 .IR s1 ,
-or 0 if there is none.
+or nil if there is none.
 .I s2
 is the null string,