software/drivers/sd8887/src/wlan/mapp/mlanevent/mlanevent.c
/**
 *  @brief      Check hex string
 *
 *  @param hex      A pointer to hex string
 *  @return         0 or MLAN_EVENT_FAILURE
 */
@brief      Check hex string
@param hex      A pointer to hex string
@return         0 or MLAN_EVENT_FAILURE
@brief Check hex string @param hex A pointer to hex string @return 0 or MLAN_EVENT_FAILURE
int
ishexstring(void *hex)
{
	int i, a;
	char *p = hex;
	int len = strlen(p);
	if (!strncasecmp("0x", p, 2)) {
		p += 2;
		len -= 2;
	}
	for (i = 0; i < len; i++) {
		a = hex2num(*p);
		if (a < 0)
			return MLAN_EVENT_FAILURE;
		p++;
	}
	return 0;
}
int ishexstring ( void * hex ) { int i , a ; char * p = hex ; int len = strlen ( p ) ; if ( ! strncasecmp ( " " , p , 2 ) ) { p += 2 ; len -= 2 ; } for ( i = 0 ; i < len ; i ++ ) { a = hex2num ( * p ) ; if ( a < 0 ) return MLAN_EVENT_FAILURE ; p ++ ; } return 0 ; }
@brief      Check hex string
  @param hex      A pointer to hex string
  @return         0 or MLAN_EVENT_FAILURE
@brief Check hex string @param hex A pointer to hex string @return 0 or MLAN_EVENT_FAILURE