📄 gp-form_cb.c
字号:
#include "forms.h"#include "gp-form.h"#include <stdio.h>/* callbacks for form Main */void ind_rater(FL_OBJECT *ob, long data){ /* fill-in code for callback */}void play_indiv(FL_OBJECT *ob, long data){ static int playing=0; static pid_t player_pid=0; char killCommand[20]; if(playing==1) { sprintf(killCommand,"kill %d", (int)player_pid); system(killCommand); } playing=1; if( ( player_pid = vfork() ) == 0 ) execlp("play_pattern", "play_pattern", "pat.bin", 0x0); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -