software/drivers/sd8887/src/wlan/mapp/mlanconfig/mlanhostcmd.c
/**
 *  @brief convert string to hex
 *
 *  @param ptr		A pointer to data buffer
 *  @param chr 		A pointer to return integer
 *  @return      	A pointer to next data field
 */
@brief convert string to hex
@param ptr          A pointer to data buffer
@param chr          A pointer to return integer
@return             A pointer to next data field
@brief convert string to hex @param ptr A pointer to data buffer @param chr A pointer to return integer @return A pointer to next data field
t_s8 *
convert2hex(t_s8 *ptr, t_u8 *chr)
{
	t_u8 val;
	for (val = 0; *ptr && isxdigit(*ptr); ptr++) {
		val = (val * 16) + hexval(*ptr);
	}
	*chr = val;
	return ptr;
}
t_s8 * convert2hex ( t_s8 * ptr , t_u8 * chr ) { t_u8 val ; for ( val = 0 ; * ptr && isxdigit ( * ptr ) ; ptr ++ ) { val = ( val * 16 ) + hexval ( * ptr ) ; } * chr = val ; return ptr ; }
@brief convert string to hex
  @param ptr          A pointer to data buffer
  @param chr          A pointer to return integer
  @return             A pointer to next data field
@brief convert string to hex @param ptr A pointer to data buffer @param chr A pointer to return integer @return A pointer to next data field