switch(decide_edit_file())
{
case 1:
cursor_left_move();
goto cursor_move_menu_start;
break;
case 2:
cursor_right_move();
goto cursor_move_menu_start;
break;
case 3:
cursor_upper_move();
goto cursor_move_menu_start;
break;
case 4:
cursor_down_move();
goto cursor_move_menu_start;
break;
case 5:
//shut_exit_file();
// goto shut_edit_file;
break;
default:
break;
}
//shut_xit_file:;
//fclose(fp);
if(fclose(fp)==0)/*If file close is success*/
{
printf("file saved finish.\n");
goto exit_edit_file;
}
else/* Then file close is error*/
{
printf("file saved defeated.\n");
goto exit_edit_file;
}
exit_edit_file:;
printf("\"Edit file\" function exited.\n\n");
//goto start_my_vim;
//break;
//default:
return; // break;
}
//goto cursor_move_menu_start;
//return;
{
case 1:
cursor_left_move();
goto cursor_move_menu_start;
break;
case 2:
cursor_right_move();
goto cursor_move_menu_start;
break;
case 3:
cursor_upper_move();
goto cursor_move_menu_start;
break;
case 4:
cursor_down_move();
goto cursor_move_menu_start;
break;
case 5:
//shut_exit_file();
// goto shut_edit_file;
break;
default:
break;
}
//shut_xit_file:;
//fclose(fp);
if(fclose(fp)==0)/*If file close is success*/
{
printf("file saved finish.\n");
goto exit_edit_file;
}
else/* Then file close is error*/
{
printf("file saved defeated.\n");
goto exit_edit_file;
}
exit_edit_file:;
printf("\"Edit file\" function exited.\n\n");
//goto start_my_vim;
//break;
//default:
return; // break;
}
//goto cursor_move_menu_start;
//return;
