Document strnul(3)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest1 patch 0 repliesNew
- v11 patch 14 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | man/man3/strnul.3: New pageman/ | +48 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/1] Document strnul(3)
Hi,
gnulib has added strnul(3). I hope libc implementations eventually pick up this API. Let's document it in a manual page.
This v2 changes a typo, and the wording of DESCRIPTION and RETURN VALUE.
Have a lovely night!
Alex
Alejandro Colomar (1):
man/man3/strnul.3: New page
man/man3/strnul.3 | 48 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 man/man3/strnul.3
Range-diff against v1:
1: 7b2c4b363f65 ! 1: 2b86d10abfc3 man/man3/strnul.3: New page
@@ man/man3/strnul.3 (new)
+.nf
+.B #include <string.h>
+.P
-+.BI char\~*streq(const\~char\~* s );
++.BI char\~*strnul(const\~char\~* s );
+.fi
+.SH DESCRIPTION
+.BR strnul ()
-+returns a pointer to the terminating null byte in the string
++calculates the position of the terminating null byte (\[aq]\[rs]0\[aq])
++in the string pointed to by
+.IR s .
+.SH RETURN VALUE
-+.IR s+strlen(s) .
++.BR strnul ()
++returns a pointer to the terminating null byte
++in the string pointed to by
++.IR s .
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).Signature · 1 line
2.51.0