software/drivers/sd8887/src/wlan/mapp/mlanconfig/mlanconfig.c
/**
 *  @brief read current command
 *  @param ptr      A pointer to data
 *  @param curCmd   A pointer to the buf which will hold current command
 *  @return         NULL or the pointer to the left command buf
 */
@brief read current command
@param ptr      A pointer to data
@param curCmd   A pointer to the buf which will hold current command
@return         NULL or the pointer to the left command buf
@brief read current command @param ptr A pointer to data @param curCmd A pointer to the buf which will hold current command @return NULL or the pointer to the left command buf
static t_s8 *
readCurCmd(t_s8 *ptr, t_s8 *curCmd)
{
	t_s32 i = 0;
#define MAX_CMD_SIZE 64	/**< Max command size */
	while (*ptr != ']' && i < (MAX_CMD_SIZE - 1))
		curCmd[i++] = *(++ptr);
	if (*ptr != ']')
		return NULL;
	curCmd[i - 1] = '\0';
	return ++ptr;
}
static t_s8 * readCurCmd ( t_s8 * ptr , t_s8 * curCmd ) { t_s32 i = 0 ; #define MAX_CMD_SIZE  64	/**< Max command size */ while ( * ptr != ' ' && i < ( MAX_CMD_SIZE - 1 ) ) curCmd [ i ++ ] = * ( ++ ptr ) ; if ( * ptr != ' ' ) return NULL ; curCmd [ i - 1 ] = ' \0 ' ; return ++ ptr ; }
@brief read current command
  @param ptr      A pointer to data
  @param curCmd   A pointer to the buf which will hold current command
  @return         NULL or the pointer to the left command buf
@brief read current command @param ptr A pointer to data @param curCmd A pointer to the buf which will hold current command @return NULL or the pointer to the left command buf