[求助]指针问题First-chance exception in 054204.exe: 0xC0000005: Access Violat
char *savef(char *filename_save)//分离路径//{
char *filename_result;
filename_result=0;
char name[]={"054204_result.txt"};
int i=0,j;
while(filename_save[i] != 0)
{
i++;
if(filename_save[i-1]=='//')
j=i;
}
i=0;
while(i!=j)
{
filename_result[i]=filename_save[i];//filename_result[i]发生错误//
i++;
}
while(i!=j+17)
{
filename_result[i]=name[i-j];
}
filename_result[j+17] = '\0';
return filename_result;
}
错误为First-chance exception in 054204.exe: 0xC0000005: Access Violation.
谢谢高手快点告诉我 急!