If I write
It compiles OK.Code:void COM_Esp8266ParamRead(char* param, void *ret_val) { if(strcmp(param,"locip")==0) { ret_val = esp_params.loc_ip; //char loc_ip[15] } }
But this way
I get an errorCode:void COM_Esp8266ParamRead(char* param, void *ret_val) { if(strcmp(param,"locip")==0) { *(char*)ret_val = esp_params.loc_ip; //char loc_ip[15] } }
Error[Pe513]: a value of type "char *" cannot be assigned to an entity of type "char"
Why I can not cast it?