software/drivers/sd8887/src/wlan/mapp/mlanconfig/mlanhostcmd.c
/*
 *  @brief convert String to integer
 *
 *  @param value	A pointer to string
 *  @return             integer
 */
@brief convert String to integer
@param value        A pointer to string
@return             integer
@brief convert String to integer @param value A pointer to string @return integer
t_u32
a2hex_or_atoi(t_s8 *value)
{
	if (value[0] == '0' && (value[1] == 'X' || value[1] == 'x')) {
		return a2hex(value + 2);
	} else if (isdigit(*value)) {
		return atoi(value);
	} else {
		return *value;
	}
}
t_u32 a2hex_or_atoi ( t_s8 * value ) { if ( value [ 0 ] == ' ' && ( value [ 1 ] == ' ' || value [ 1 ] == ' ' ) ) { return a2hex ( value + 2 ) ; } else if ( isdigit ( * value ) ) { return atoi ( value ) ; } else { return * value ; } }
@brief convert String to integer
  @param value        A pointer to string
  @return             integer
@brief convert String to integer @param value A pointer to string @return integer