ctags -R -h.c.h
跑完之後會看到如下圖的資料夾(程式太多隻會跑比較久)
接著再進入VIM鍵入以下指令
set tags="路徑"
ctags操作方式:
=>進入函式 : Shift + ] (ps. 游標需在函式位置)
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
=>跳回函式 : Shift + t
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
這是我的工作酸甜苦辣,與大家分享,希望彼此都有收穫:) This is my working experience in my life. It is good to share with you :)
char *buf;
...
for (i=0; i<buf_size; i++)
printf("%02x ", buf[i] & 0xff);
unsigned char *buf;
...
for (i=0; i<buf_size; i++)
printf("%02x ", buf [i]);