diff options
Diffstat (limited to 'src/lib/libc/string/memchr.3')
| -rw-r--r-- | src/lib/libc/string/memchr.3 | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/lib/libc/string/memchr.3 b/src/lib/libc/string/memchr.3 index 265711e3b5..632c440b5b 100644 --- a/src/lib/libc/string/memchr.3 +++ b/src/lib/libc/string/memchr.3 | |||
| @@ -33,8 +33,7 @@ | |||
| 33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 34 | .\" SUCH DAMAGE. | 34 | .\" SUCH DAMAGE. |
| 35 | .\" | 35 | .\" |
| 36 | .\" from: @(#)memchr.3 5.4 (Berkeley) 6/29/91 | 36 | .\" $OpenBSD: memchr.3,v 1.5 2000/04/21 15:24:19 aaron Exp $ |
| 37 | .\" $Id: memchr.3,v 1.1.1.1 1995/10/18 08:42:21 deraadt Exp $ | ||
| 38 | .\" | 37 | .\" |
| 39 | .Dd June 29, 1991 | 38 | .Dd June 29, 1991 |
| 40 | .Dt MEMCHR 3 | 39 | .Dt MEMCHR 3 |
| @@ -49,23 +48,21 @@ | |||
| 49 | .Sh DESCRIPTION | 48 | .Sh DESCRIPTION |
| 50 | The | 49 | The |
| 51 | .Fn memchr | 50 | .Fn memchr |
| 52 | function | 51 | function locates the first occurrence of |
| 53 | locates the first occurrence of | ||
| 54 | .Fa c | 52 | .Fa c |
| 55 | (converted to an unsigned char) | 53 | (converted to an |
| 54 | .Li unsigned char ) | ||
| 56 | in string | 55 | in string |
| 57 | .Fa b . | 56 | .Fa b . |
| 58 | .Sh RETURN VALUES | 57 | .Sh RETURN VALUES |
| 59 | The | 58 | The |
| 60 | .Fn memchr | 59 | .Fn memchr |
| 61 | function | 60 | function returns a pointer to the byte located, or |
| 62 | returns a pointer to the byte located, | 61 | .Dv NULL |
| 63 | or NULL if no such byte exists within | 62 | if no such byte exists within |
| 64 | .Fa len | 63 | .Fa len |
| 65 | bytes. | 64 | bytes. |
| 66 | .Sh SEE ALSO | 65 | .Sh SEE ALSO |
| 67 | .Xr index 3 , | ||
| 68 | .Xr rindex 3 , | ||
| 69 | .Xr strchr 3 , | 66 | .Xr strchr 3 , |
| 70 | .Xr strcspn 3 , | 67 | .Xr strcspn 3 , |
| 71 | .Xr strpbrk 3 , | 68 | .Xr strpbrk 3 , |
| @@ -77,6 +74,5 @@ bytes. | |||
| 77 | .Sh STANDARDS | 74 | .Sh STANDARDS |
| 78 | The | 75 | The |
| 79 | .Fn memchr | 76 | .Fn memchr |
| 80 | function | 77 | function conforms to |
| 81 | conforms to | ||
| 82 | .St -ansiC . | 78 | .St -ansiC . |
