qbs* FUNC_GETFILEEXTENSION(qbs*_FUNC_GETFILEEXTENSION_STRING_F){
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 "data95.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;
S_34037:;
fornext_value3961=_FUNC_GETFILEEXTENSION_STRING_F->len;
fornext_finalvalue3961= 1 ;
fornext_step3961= -1 ;
if (fornext_step3961<0) fornext_step_negative3961=1; else fornext_step_negative3961=0;
if (is_error_pending()) goto fornext_error3961;
goto fornext_entrylabel3961;
while(1){
fornext_value3961=fornext_step3961+(*_FUNC_GETFILEEXTENSION_LONG_I);
fornext_entrylabel3961:
*_FUNC_GETFILEEXTENSION_LONG_I=fornext_value3961;
qbs_cleanup(qbs_tmp_base,0);
if (fornext_step_negative3961){
if (fornext_value3961<fornext_finalvalue3961) break;
}else{
if (fornext_value3961>fornext_finalvalue3961) break;
}
fornext_error3961:;
if(qbevent){evnt(25750,62,"file.bas");if(r)goto S_34037;}
do{
*_FUNC_GETFILEEXTENSION_LONG_A=qbs_asc(_FUNC_GETFILEEXTENSION_STRING_F,*_FUNC_GETFILEEXTENSION_LONG_I);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25750,63,"file.bas");}while(r);
S_34039:;
if (((-(*_FUNC_GETFILEEXTENSION_LONG_A== 47 ))|(-(*_FUNC_GETFILEEXTENSION_LONG_A== 92 )))||is_error_pending()){
if(qbevent){evnt(25750,64,"file.bas");if(r)goto S_34039;}
do{
goto fornext_exit_3960;
if(!qbevent)break;evnt(25750,64,"file.bas");}while(r);
}
S_34042:;
if ((-(*_FUNC_GETFILEEXTENSION_LONG_A== 46 ))||is_error_pending()){
if(qbevent){evnt(25750,65,"file.bas");if(r)goto S_34042;}
do{
qbs_set(_FUNC_GETFILEEXTENSION_STRING_GETFILEEXTENSION,func_mid(_FUNC_GETFILEEXTENSION_STRING_F,*_FUNC_GETFILEEXTENSION_LONG_I+ 1 ,NULL,0));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25750,65,"file.bas");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(25750,65,"file.bas");}while(r);
}
fornext_continue_3960:;
}
fornext_exit_3960:;
do{
qbs_set(_FUNC_GETFILEEXTENSION_STRING_GETFILEEXTENSION,qbs_new_txt_len("",0));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25750,67,"file.bas");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free95.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;
qbs_maketmp(_FUNC_GETFILEEXTENSION_STRING_GETFILEEXTENSION);return _FUNC_GETFILEEXTENSION_STRING_GETFILEEXTENSION;
}
