ubstitute `//0' by '\\0'.

This commit is contained in:
Michael Kerrisk 2007-06-12 21:30:10 +00:00
parent 2b0fa18232
commit c401054d5c
7 changed files with 9 additions and 9 deletions

View File

@ -37,7 +37,7 @@ stpcpy \- copy a string returning a pointer to its end
The The
.BR stpcpy () .BR stpcpy ()
function copies the string pointed to by \fIsrc\fP function copies the string pointed to by \fIsrc\fP
(including the terminating `\\0' character) to the array pointed to by (including the terminating '\\0' character) to the array pointed to by
\fIdest\fP. \fIdest\fP.
The strings may not overlap, and the destination string The strings may not overlap, and the destination string
\fIdest\fP must be large enough to receive the copy. \fIdest\fP must be large enough to receive the copy.

View File

@ -38,7 +38,7 @@ strlen \- calculate the length of a string
The The
.BR strlen () .BR strlen ()
function calculates the length of the string function calculates the length of the string
\fIs\fP, not including the terminating `\\0' character. \fIs\fP, not including the terminating '\\0' character.
.SH "RETURN VALUE" .SH "RETURN VALUE"
The The
.BR strlen () .BR strlen ()

View File

@ -45,7 +45,7 @@ and does nothing else.
Otherwise, this function finds the first token Otherwise, this function finds the first token
in the string *\fIstringp\fP, where tokens in the string *\fIstringp\fP, where tokens
are delimited by symbols in the string \fIdelim\fP. are delimited by symbols in the string \fIdelim\fP.
This token is terminated with a `\\0' character This token is terminated with a '\\0' character
(by overwriting the delimiter) (by overwriting the delimiter)
and *\fIstringp\fP is updated to point past the token. and *\fIstringp\fP is updated to point past the token.
In case no delimiter was found, the token is taken to be In case no delimiter was found, the token is taken to be

View File

@ -48,7 +48,7 @@ The
.BR strstr () .BR strstr ()
function finds the first occurrence of the substring function finds the first occurrence of the substring
\fIneedle\fP in the string \fIhaystack\fP. \fIneedle\fP in the string \fIhaystack\fP.
The terminating \`\\0' characters are not compared. The terminating '\\0' characters are not compared.
The The
.BR strcasestr () .BR strcasestr ()

View File

@ -73,8 +73,8 @@ all,
.BR strtol () .BR strtol ()
stores the original value of \fInptr\fP in stores the original value of \fInptr\fP in
\fI*endptr\fP (and returns 0). \fI*endptr\fP (and returns 0).
In particular, if \fI*nptr\fP is not `\\0' but \fI**endptr\fP In particular, if \fI*nptr\fP is not '\\0' but \fI**endptr\fP
is `\\0' on return, the entire string is valid. is '\\0' on return, the entire string is valid.
.PP .PP
The The
.BR strtoll () .BR strtoll ()

View File

@ -75,8 +75,8 @@ all,
.BR strtoul () .BR strtoul ()
stores the original value of \fInptr\fP in stores the original value of \fInptr\fP in
\fI*endptr\fP (and returns 0). \fI*endptr\fP (and returns 0).
In particular, if \fI*nptr\fP is not `\\0' but \fI**endptr\fP In particular, if \fI*nptr\fP is not '\\0' but \fI**endptr\fP
is `\\0' on return, the entire string is valid. is '\\0' on return, the entire string is valid.
.PP .PP
The The
.BR strtoull () .BR strtoull ()

View File

@ -56,7 +56,7 @@ The
.BR strxfrm () .BR strxfrm ()
function returns the number of bytes required to function returns the number of bytes required to
store the transformed string in \fIdest\fP excluding the terminating store the transformed string in \fIdest\fP excluding the terminating
`\\0' character. '\\0' character.
If the value returned is \fIn\fP or more, the If the value returned is \fIn\fP or more, the
contents of \fIdest\fP are indeterminate. contents of \fIdest\fP are indeterminate.
.SH "CONFORMING TO" .SH "CONFORMING TO"