software/drivers/sd8887/src/wlan/mlan/mlan_cfp.c
/**
 *  @brief Find a character in a string.
 *
 *  @param pmadapter    A pointer to mlan_adapter structure
 *  @param s            A pointer to string
 *  @param c            Character to be located
 *  @param n            The length of string
 *
 *  @return        A pointer to the first occurrence of c in string, or MNULL if c is not found.
 */
@brief Find a character in a string.
@param pmadapter    A pointer to mlan_adapter structure
@param s            A pointer to string
@param c            Character to be located
@param n            The length of string

@return        A pointer to the first occurrence of c in string, or MNULL if c is not found.
@brief Find a character in a string . @param pmadapter A pointer to mlan_adapter structure @param s A pointer to string @param c Character to be located @param n The length of string @return A pointer to the first occurrence of c in string or MNULL if c is not found .
static void *
wlan_memchr(pmlan_adapter pmadapter, void *s, int c, int n)
{
	const t_u8 *p = (t_u8 *)s;
	ENTER();
	while (n--) {
		if ((t_u8)c == *p++) {
			LEAVE();
			return (void *)(p - 1);
		}
	}
	LEAVE();
	return MNULL;
}
static void * wlan_memchr ( pmlan_adapter pmadapter , void * s , int c , int n ) { const t_u8 * p = ( t_u8 * ) s ; ENTER ( ) ; while ( n -- ) { if ( ( t_u8 ) c == * p ++ ) { LEAVE ( ) ; return ( void * ) ( p - 1 ) ; } } LEAVE ( ) ; return MNULL ; }
@brief Find a character in a string.
@brief Find a character in a string .