what does the means of operator "->" in C proramming for esp
Posted: Wed Feb 24, 2016 1:07 am
I saw many operator "->" in example but can not understand what does that operator mean. Anyone can help me to explain.
Here is an example having "->"
Here is an example having "->"
Code: Select all
LOCAL uint32_t ICACHE_FLASH_ATTR
CMD_Exec(const CMD_LIST *scp, PACKET_CMD *packet)
{
uint32_t ret;
uint16_t crc = 0;
while (scp->sc_name != CMD_NULL){
if(scp->sc_name == packet->cmd) {
ret = scp->sc_function(packet);
if(packet->_return){
INFO("CMD: Response return value: %d, cmd: %d\r\n", ret, packet->cmd);
crc = CMD_ResponseStart(packet->cmd, 0, ret, 0);
CMD_ResponseEnd(crc);
}
return ret;
}
scp++;
}
return 0;
}