int32 FUNC_COPYFILE(qbs*_FUNC_COPYFILE_STRING_SOURCEFILE,qbs*_FUNC_COPYFILE_STRING_DESTFILE){
qbs *tqbs;
ptrszint tmp_long;
int32 tmp_fileno;
uint32 qbs_tmp_base=qbs_tmp_list_nexti;
uint8 *tmp_mem_static_pointer=mem_static_pointer;
uint32 tmp_cmem_sp=cmem_sp;
#include "data83.txt"
mem_lock *sf_mem_lock;
new_mem_lock();
sf_mem_lock=mem_lock_tmp;
sf_mem_lock->type=3;
if (is_error_pending()) goto exit_subfunc;
do{
qbs_set(error_handler_history, qbs_add(qbs_add(qbs_str((int32)(error_goto_line)), qbs_new_txt_len("|", 1)), error_handler_history));
qbs_cleanup(qbs_tmp_base, 0);
error_goto_line=11;
if(!qbevent)break;evnt(24216,8,"file.bas");}while(r);
do{
*__LONG_E= 0 ;
if(!qbevent)break;evnt(24216,9,"file.bas");}while(r);
do{
qbs_set(_FUNC_COPYFILE_STRING_DAT,func__readfile(_FUNC_COPYFILE_STRING_SOURCEFILE));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24216,9,"file.bas");}while(r);
S_32491:;
if ((-(*__LONG_E== 0 ))||is_error_pending()){
if(qbevent){evnt(24216,10,"file.bas");if(r)goto S_32491;}
do{
sub__writefile(_FUNC_COPYFILE_STRING_DESTFILE,_FUNC_COPYFILE_STRING_DAT);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24216,10,"file.bas");}while(r);
}else{
do{
*__LONG_E= -1 ;
if(!qbevent)break;evnt(24216,10,"file.bas");}while(r);
}
do{
error_goto_line = qbr(qbs_val<uint64_t>(error_handler_history));
qbs_set(error_handler_history, func_mid(error_handler_history, func_instr(NULL, error_handler_history, qbs_new_txt_len("|", 1), 0) + 1 , NULL, 0));
qbs_cleanup(qbs_tmp_base, 0);
if(!qbevent)break;evnt(24216,11,"file.bas");}while(r);
do{
*_FUNC_COPYFILE_LONG_COPYFILE=*__LONG_E;
if(!qbevent)break;evnt(24216,13,"file.bas");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free83.txt"
if ((tmp_mem_static_pointer>=mem_static)&&(tmp_mem_static_pointer<=mem_static_limit)) mem_static_pointer=tmp_mem_static_pointer; else mem_static_pointer=mem_static;
cmem_sp=tmp_cmem_sp;
return *_FUNC_COPYFILE_LONG_COPYFILE;
}
