顯示具有 c 標籤的文章。 顯示所有文章
顯示具有 c 標籤的文章。 顯示所有文章

2018年2月13日 星期二

2017年10月20日 星期五

C - Standard Predefined Macros


C 語言有些預先定義的巨集 ( Standard Predefined Macros ) , 
可以直接印出行數、檔案名稱、函數名稱 ...

-

例如 : 
如果要用 printf 印出行數時 , 不需要特別針對每一行去寫每一行的行數 , 
也不用因爲前面多了幾行程式 , 就要把後面 printf 要印出的行數全部重新寫

-

2017年10月12日 星期四

[C] error : dereferencing pointer to incomplete type

error message
error: dereferencing pointer to incomplete type
if ( ioctl ( drv->ioctl_sock, IEEE80211_IOCTL_GETCHANINFO, &iwr ) < 0 ) {
               ^

[C] error : static declaration follows non-static declaration (1)

error message
error: static declaration of 'call80211ioctl' follows non-static declaration
call80211ioctl ( struct atheros_driver_data *drv, int op, struct iwreq *iwr )
 ^