software/drivers/sd8887/src/wlan/mapp/mlanconfig/mlanhostcmd.c
/**
 *  @brief Convert String to Integer
 *  @param buf      A pointer to the string
 *  @return         Integer
 */
@brief Convert String to Integer
@param buf      A pointer to the string
@return         Integer
@brief Convert String to Integer @param buf A pointer to the string @return Integer
int
atoval(t_s8 *buf)
{
	if (!strncasecmp(buf, "0x", 2))
		return a2hex(buf + 2);
	else if (!ishexstring(buf))
		return a2hex(buf);
	else
		return atoi(buf);
}
int atoval ( t_s8 * buf ) { if ( ! strncasecmp ( buf , " " , 2 ) ) return a2hex ( buf + 2 ) ; else if ( ! ishexstring ( buf ) ) return a2hex ( buf ) ; else return atoi ( buf ) ; }
@brief Convert String to Integer
  @param buf      A pointer to the string
  @return         Integer
@brief Convert String to Integer @param buf A pointer to the string @return Integer