기능이 있습니다. FA-> file_temp는 FA-> file의 사본입니다. FA-> file_temp가 TEMP 디렉토리에 있습니다. (C : \ 사용자 \ 사용자 \의 AppData \ 로컬 \ 온도)perror : 해당 파일이나 디렉토리가 없습니다.
stat(FA->file, &st_file);
filesize = st_file.st_size;
ffile = fopen(FA->file_temp, "rb");
if (ffile == NULL) perror("NULL!!!!!!!!!!!!!1\n");
strcpy(str, FA->file_dir);
strcat(str, "packed");
temp_name(str) ;
strcpy(FA->tmpname , str);
ftmpname = fopen(FA->tmpname, "wb");
if (ftmpname == NULL) perror("NULL!!!!!!!!!!!!!1\n");
if (rc = encode(ffile, ftmpname, filesize)!=0)
longjmp(Berror, rc);
무엇이 질문입니까? –
어설 션이 실패한 이유는 무엇입니까? – sleepy