software/drivers/sd8887/src/wlan/mapp/mlanconfig/mlanhostcmd.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
t_u32
a2hex(t_s8 *s)
{
	t_u32 val = 0;
	if (!strncasecmp("0x", s, 2)) {
		s += 2;
	}
	while (*s && isxdigit(*s)) {
		val = (val << 4) + hexc2bin(*s++);
	}
	return val;
}
t_u32 a2hex ( t_s8 * s ) { t_u32 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