char** splitter(char **me, int len)
{
char *temp=*me;
char *block[blockcount];
*block=malloc(len *sizeof(char *));
//my code
return █
}
我想在给定的字符串上运行一些代码,然后通过char * block []将其分割为数组中的块,然后返回到我的主函数
在编译时,我收到以下警告:
incompatible pointer types returning 'char *(*)[blockcount]' from a function with result type 'char *'
address of stack memory associated with local variable 'block' returned
return █
是否有办法更好地返回指针?