看板 PttCurrent 關於我們 聯絡資訊
假設我想在文章列表按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