精華區beta Programming 關於我們 聯絡資訊
: 推 march20:疑問: 倒底 static 是 qualify 這個 ptr 71.137.27.253 07/19 09:44 : 推 march20:還是 ptr 指到的 function ? 71.137.27.253 07/19 09:44 : 推 qrtt1:pointer to function address 163.26.34.214 07/19 09:45 : 推 ledia:static function 就是 static function ptr 140.112.30.56 07/19 10:55 : 推 march20:感覺上 match "static" function 不太合理 71.137.27.253 07/19 11:31 : 推 march20:btw, static ptr 要怎麼宣告呢? 71.137.27.253 07/19 11:32 : 推 march20:int (static *fp)(char*,char**) ? 71.137.27.253 07/19 11:33 : 推 march20:呃, int 改成 void, 一時眼殘 XD 71.137.27.253 07/19 11:35 : 推 cole945:static修飾的是sspa吧@o@" 是不是指向 220.139.130.179 07/19 13:34 : → cole945:static的function應該沒有呀呀._." 220.139.130.179 07/19 13:34 總之, 我已經亂掉了 XD 重來一遍 如果 static void (*sspa)(char *, char**); 那麼 1. sspa is a static pointer, which points to a void (char*, char**) function. 2. sspa is a pointer, which points to a static function of signature void (char *, char**). 是 1 還是 2 ? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 71.137.27.253 ※ 編輯: march20 來自: 71.137.27.253 (07/19 13:58)
march20:ok, 看來是 1 沒錯 71.137.27.253 07/20 04:33