software/drivers/sd8887/src/wlan/mapp/mlanevent/mlanevent.c
/**
 *    @brief Convert string to hex integer
 *
 *    @param s            A pointer string buffer
 *    @return             Hex integer
 */
@brief Convert string to hex integer
@param s            A pointer string buffer
@return             Hex integer
@brief Convert string to hex integer @param s A pointer string buffer @return Hex integer
unsigned int
a2hex(char *s)
{
	unsigned int val = 0;
	if (!strncasecmp("0x", s, 2)) {
		s += 2;
	}
	while (*s && isxdigit(*s)) {
		val = (val << 4) + hexc2bin(*s++);
	}
	return val;
}
unsigned int a2hex ( char * s ) { unsigned int val = 0 ; if ( ! strncasecmp ( " " , s , 2 ) ) { s += 2 ; } while ( * s && isxdigit ( * s ) ) { val = ( val << 4 ) + hexc2bin ( * s ++ ) ; } return val ; }
@brief Convert string to hex integer
    @param s            A pointer string buffer
    @return             Hex integer
@brief Convert string to hex integer @param s A pointer string buffer @return Hex integer