software/drivers/sd8887/src/wlan/mapp/mlanutl/mlanoffload.c
/**
 *  @brief Remove unwanted spaces, tabs from a line
 *
 *  @param data     A pointer to the starting of the line
 *  @return         NA
 */
@brief Remove unwanted spaces, tabs from a line
@param data     A pointer to the starting of the line
@return         NA
@brief Remove unwanted spaces tabs from a line @param data A pointer to the starting of the line @return NA
static void
profile_param_polish(char *data)
{
	t_u8 i, j, len = 0;
	char *ptr;
	ptr = strrchr(data, '\r');
	if (ptr == NULL) {
		ptr = strrchr(data, '\n');
		if (ptr == NULL) {
			return;
		}
	}
	len = ptr - data;
	for (i = 0; i < len; i++) {
		if ((*(data + i) == ' ') || (*(data + i) == '\t')) {
			for (j = i; j < len; j++) {
				data[j] = data[j + 1];
			}
			i--;
			len--;
		}
	}
}
static void profile_param_polish ( char * data ) { t_u8 i , j , len = 0 ; char * ptr ; ptr = strrchr ( data , ' \r ' ) ; if ( ptr == NULL ) { ptr = strrchr ( data , ' \n ' ) ; if ( ptr == NULL ) { return ; } } len = ptr - data ; for ( i = 0 ; i < len ; i ++ ) { if ( ( * ( data + i ) == ' ' ) || ( * ( data + i ) == ' \t ' ) ) { for ( j = i ; j < len ; j ++ ) { data [ j ] = data [ j + 1 ] ; } i -- ; len -- ; } } }
@brief Remove unwanted spaces, tabs from a line
  @param data     A pointer to the starting of the line
  @return         NA
@brief Remove unwanted spaces tabs from a line @param data A pointer to the starting of the line @return NA