Browse Source

correct description

OPENBSD_2_3
deraadt 27 years ago
parent
commit
ab9e784f8f
2 changed files with 5 additions and 5 deletions
  1. +3
    -3
      src/lib/libc/string/index.3
  2. +2
    -2
      src/lib/libc/string/rindex.3

+ 3
- 3
src/lib/libc/string/index.3 View File

@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $OpenBSD: index.3,v 1.3 1997/07/10 23:54:34 millert Exp $
.\" $OpenBSD: index.3,v 1.4 1997/12/30 01:09:49 deraadt Exp $
.\" .\"
.Dd April 19, 1991 .Dd April 19, 1991
.Dt INDEX 3 .Dt INDEX 3
@ -54,9 +54,9 @@ locates the first character matching
in the null-terminated string in the null-terminated string
.Fa s . .Fa s .
.Sh RETURN VALUES .Sh RETURN VALUES
The character
If the character
.Fa c .Fa c
is returned if it is found; otherwise
is found, a pointer to it is returned; otherwise
.Dv NULL .Dv NULL
is returned. is returned.
If If


+ 2
- 2
src/lib/libc/string/rindex.3 View File

@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $OpenBSD: rindex.3,v 1.2 1996/08/19 08:34:08 tholo Exp $
.\" $OpenBSD: rindex.3,v 1.3 1997/12/30 01:09:49 deraadt Exp $
.\" .\"
.Dd April 19, 1991 .Dd April 19, 1991
.Dt RINDEX 3 .Dt RINDEX 3
@ -54,7 +54,7 @@ matching
.Em char ) .Em char )
in the null-terminated string in the null-terminated string
.Fa s . .Fa s .
The character c is returned if it is found; otherwise NULL is returned.
If the character c is found, a pointer to it is returned; otherwise NULL is returned.
If If
.Fa c .Fa c
is is


Loading…
Cancel
Save