1*90b052abSAntonio Huete Jimenez.\" Copyright (c) 2012 Ed Schouten <ed@FreeBSD.org> 2*90b052abSAntonio Huete Jimenez.\" All rights reserved. 3*90b052abSAntonio Huete Jimenez.\" 4*90b052abSAntonio Huete Jimenez.\" Redistribution and use in source and binary forms, with or without 5*90b052abSAntonio Huete Jimenez.\" modification, are permitted provided that the following conditions 6*90b052abSAntonio Huete Jimenez.\" are met: 7*90b052abSAntonio Huete Jimenez.\" 1. Redistributions of source code must retain the above copyright 8*90b052abSAntonio Huete Jimenez.\" notice, this list of conditions and the following disclaimer. 9*90b052abSAntonio Huete Jimenez.\" 2. Redistributions in binary form must reproduce the above copyright 10*90b052abSAntonio Huete Jimenez.\" notice, this list of conditions and the following disclaimer in the 11*90b052abSAntonio Huete Jimenez.\" documentation and/or other materials provided with the distribution. 12*90b052abSAntonio Huete Jimenez.\" 13*90b052abSAntonio Huete Jimenez.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14*90b052abSAntonio Huete Jimenez.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15*90b052abSAntonio Huete Jimenez.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16*90b052abSAntonio Huete Jimenez.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17*90b052abSAntonio Huete Jimenez.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18*90b052abSAntonio Huete Jimenez.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19*90b052abSAntonio Huete Jimenez.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20*90b052abSAntonio Huete Jimenez.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21*90b052abSAntonio Huete Jimenez.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22*90b052abSAntonio Huete Jimenez.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23*90b052abSAntonio Huete Jimenez.\" SUCH DAMAGE. 24*90b052abSAntonio Huete Jimenez.\" 25*90b052abSAntonio Huete Jimenez.\" $FreeBSD: src/share/man/man9/memcchr.9,v 1.1 2012/01/01 20:59:42 ed Exp $ 26*90b052abSAntonio Huete Jimenez.\" 27*90b052abSAntonio Huete Jimenez.Dd January 1, 2012 28*90b052abSAntonio Huete Jimenez.Dt MEMCCHR 9 29*90b052abSAntonio Huete Jimenez.Os 30*90b052abSAntonio Huete Jimenez.Sh NAME 31*90b052abSAntonio Huete Jimenez.Nm memcchr 32*90b052abSAntonio Huete Jimenez.Nd locate the complement of a byte in byte string 33*90b052abSAntonio Huete Jimenez.Sh SYNOPSIS 34*90b052abSAntonio Huete Jimenez.In sys/libkern.h 35*90b052abSAntonio Huete Jimenez.Ft void * 36*90b052abSAntonio Huete Jimenez.Fn memcchr "const void *b" "int c" "size_t len" 37*90b052abSAntonio Huete Jimenez.Sh DESCRIPTION 38*90b052abSAntonio Huete JimenezThe 39*90b052abSAntonio Huete Jimenez.Fn memcchr 40*90b052abSAntonio Huete Jimenezfunction locates the first occurrence of a byte unequal to 41*90b052abSAntonio Huete Jimenez.Fa c 42*90b052abSAntonio Huete Jimenez(converted to an 43*90b052abSAntonio Huete Jimenez.Vt "unsigned char" ) 44*90b052abSAntonio Huete Jimenezin string 45*90b052abSAntonio Huete Jimenez.Fa b . 46*90b052abSAntonio Huete Jimenez.Sh RETURN VALUES 47*90b052abSAntonio Huete JimenezThe 48*90b052abSAntonio Huete Jimenez.Fn memcchr 49*90b052abSAntonio Huete Jimenezfunction returns a pointer to the byte located, or NULL if no such byte 50*90b052abSAntonio Huete Jimenezexists within 51*90b052abSAntonio Huete Jimenez.Fa len 52*90b052abSAntonio Huete Jimenezbytes. 53*90b052abSAntonio Huete Jimenez.Sh SEE ALSO 54*90b052abSAntonio Huete Jimenez.Xr memchr 3 55*90b052abSAntonio Huete Jimenez.Sh HISTORY 56*90b052abSAntonio Huete JimenezThe 57*90b052abSAntonio Huete Jimenez.Fn memcchr 58*90b052abSAntonio Huete Jimenezfunction first appeared in 59*90b052abSAntonio Huete Jimenez.Fx 10.0 . 60