作者shane123 (家產有八十七億  ﰩ
看板PttCurrent
標題請問我若要加功能上去
時間Thu May 26 07:13:57 2005
假設我想在文章列表按p的話執行某個function
那我到底要把這個地方寫在
bbs.c
const onekey_t read_comms[] = {
show_filename, // Ctrl('A')
NULL, // Ctrl('B')
NULL, // Ctrl('C')
..
..
function, //p
還是寫在
read.c
static int
i_read_key(const onekey_t * rcmdlist, keeploc_t * locmem,
int bid, int bottom_line)
case 'p':
function(headers);
break;
我試過只有寫在read.c裡面才能動
若是寫在bbs.c完全沒辦法讓function動起來
能給點提示嗎??
thanks~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.62.97.25