software/drivers/sd8887/src/wlan/mapp/uaputl/uaputl.c
/**
 *  @brief 		Check hex string
 *
 *  @param hex		A pointer to hex string
 *  @return      	UAP_SUCCESS or UAP_FAILURE
 */
@brief              Check hex string
@param hex          A pointer to hex string
@return             UAP_SUCCESS or UAP_FAILURE
@brief Check hex string @param hex A pointer to hex string @return UAP_SUCCESS or UAP_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 UAP_FAILURE;
		p++;
	}
	return UAP_SUCCESS;
}
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 UAP_FAILURE ; p ++ ; } return UAP_SUCCESS ; }
@brief              Check hex string
  @param hex          A pointer to hex string
  @return             UAP_SUCCESS or UAP_FAILURE
@brief Check hex string @param hex A pointer to hex string @return UAP_SUCCESS or UAP_FAILURE