diff options
Diffstat (limited to 'src/lib/libc/string/memchr.3')
| -rw-r--r-- | src/lib/libc/string/memchr.3 | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/src/lib/libc/string/memchr.3 b/src/lib/libc/string/memchr.3 index 265711e3b5..ddca58bc5e 100644 --- a/src/lib/libc/string/memchr.3 +++ b/src/lib/libc/string/memchr.3 | |||
| @@ -13,11 +13,7 @@ | |||
| 13 | .\" 2. Redistributions in binary form must reproduce the above copyright | 13 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| 14 | .\" notice, this list of conditions and the following disclaimer in the | 14 | .\" notice, this list of conditions and the following disclaimer in the |
| 15 | .\" documentation and/or other materials provided with the distribution. | 15 | .\" documentation and/or other materials provided with the distribution. |
| 16 | .\" 3. All advertising materials mentioning features or use of this software | 16 | .\" 3. Neither the name of the University nor the names of its contributors |
| 17 | .\" must display the following acknowledgement: | ||
| 18 | .\" This product includes software developed by the University of | ||
| 19 | .\" California, Berkeley and its contributors. | ||
| 20 | .\" 4. Neither the name of the University nor the names of its contributors | ||
| 21 | .\" may be used to endorse or promote products derived from this software | 17 | .\" may be used to endorse or promote products derived from this software |
| 22 | .\" without specific prior written permission. | 18 | .\" without specific prior written permission. |
| 23 | .\" | 19 | .\" |
| @@ -33,8 +29,7 @@ | |||
| 33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 34 | .\" SUCH DAMAGE. | 30 | .\" SUCH DAMAGE. |
| 35 | .\" | 31 | .\" |
| 36 | .\" from: @(#)memchr.3 5.4 (Berkeley) 6/29/91 | 32 | .\" $OpenBSD: memchr.3,v 1.6 2003/06/02 20:18:38 millert Exp $ |
| 37 | .\" $Id: memchr.3,v 1.1.1.1 1995/10/18 08:42:21 deraadt Exp $ | ||
| 38 | .\" | 33 | .\" |
| 39 | .Dd June 29, 1991 | 34 | .Dd June 29, 1991 |
| 40 | .Dt MEMCHR 3 | 35 | .Dt MEMCHR 3 |
| @@ -49,23 +44,21 @@ | |||
| 49 | .Sh DESCRIPTION | 44 | .Sh DESCRIPTION |
| 50 | The | 45 | The |
| 51 | .Fn memchr | 46 | .Fn memchr |
| 52 | function | 47 | function locates the first occurrence of |
| 53 | locates the first occurrence of | ||
| 54 | .Fa c | 48 | .Fa c |
| 55 | (converted to an unsigned char) | 49 | (converted to an |
| 50 | .Li unsigned char ) | ||
| 56 | in string | 51 | in string |
| 57 | .Fa b . | 52 | .Fa b . |
| 58 | .Sh RETURN VALUES | 53 | .Sh RETURN VALUES |
| 59 | The | 54 | The |
| 60 | .Fn memchr | 55 | .Fn memchr |
| 61 | function | 56 | function returns a pointer to the byte located, or |
| 62 | returns a pointer to the byte located, | 57 | .Dv NULL |
| 63 | or NULL if no such byte exists within | 58 | if no such byte exists within |
| 64 | .Fa len | 59 | .Fa len |
| 65 | bytes. | 60 | bytes. |
| 66 | .Sh SEE ALSO | 61 | .Sh SEE ALSO |
| 67 | .Xr index 3 , | ||
| 68 | .Xr rindex 3 , | ||
| 69 | .Xr strchr 3 , | 62 | .Xr strchr 3 , |
| 70 | .Xr strcspn 3 , | 63 | .Xr strcspn 3 , |
| 71 | .Xr strpbrk 3 , | 64 | .Xr strpbrk 3 , |
| @@ -77,6 +70,5 @@ bytes. | |||
| 77 | .Sh STANDARDS | 70 | .Sh STANDARDS |
| 78 | The | 71 | The |
| 79 | .Fn memchr | 72 | .Fn memchr |
| 80 | function | 73 | function conforms to |
| 81 | conforms to | ||
| 82 | .St -ansiC . | 74 | .St -ansiC . |
